You can use the application kdcop while running KMail, to list all the interfaces and all the functions of those interfaces available by DCOP.
You can use this functions in shell scripts through the dcop commandline tool
For example
|
Source code
|
1
|
#> dcop kmail KMailIface checkMail
|
will trigger a check for new mails
Cheers,
_