Message: previous - next
Month: June 2016

qdbus vs kmail ??

From: Gene Heskett <gheskett@...>
Date: Thu, 9 Jun 2016 13:01:17 -0400
Greetings to the tde-r14.0.4 kmail experts;

One of the things that is rather glaringly not addressed in the docs on 
kmail that are easily read from a click on the help pulldown, is any 
info on how to control kmails functioning via dbus commands.

I've been using dbus to send it a get new mail cmd for years, using
a command line someone gave me:

/usr/bin/qdbus org.kde.kmail /KMail org.kde.kmail.kmail.checkMail

but since my sa-learn scripts also reach into kmail's database and move 
files once sa-learn (-ham or -spam) has done its thing, it would be 
easier on kmails sanity if I could send it a rebuild index command on 
the two directory's mucked with.

man qdbus looks helpfull, but says that org.kde.kmail does not exist when 
I attempt to query it using the above command or variations of it.  I 
would assume that 

$>/usr/bin/qdbus org.kde.kmail /KMail

would return a whats available list, but doesn't. All I can get is:
gene@coyote:~$ qdbus  -service org.kde.kmail /KMail
Service 'org.kde.kmail' does not exist.
gene@coyote:~$ qdbus  org.kde.kmail /KMail
Service 'org.kde.kmail' does not exist.
gene@coyote:~$ qdbus  org.kde.kmail
Service 'org.kde.kmail' does not exist.

And yet the first sample command above works and has been working since 
dcop was deprecated somewhere back up the timeline quite a few years 

Is there such a doc someplace?  Or am I  miss-reading the qdbus man page.
A simple qdbus[enter] returns only this:
gene@coyote:~$ qdbus

And yet a command sent to org.kde.kmail works a treat.  So how is that 
command getting there, because it works, and has been working for years.

Me goes off to Wallies to get some scripts that keep me tuned up as well 
as can be expected considering the accumulated mileage.

Cheers, Gene Heskett
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <>