[Users] Need help, moving from kmail-1.13.5 to claws-mail

Holger Berndt berndth at gmx.de
Sun Feb 23 11:03:01 CET 2014


On Sa, 22.02.2014 22:05, Gene Heskett wrote:

>A session of 
>inotifywatch being run by a looping script then arranges to send kmail a go 
>get the mail commend over the dbus everytime a $user file is closed in 
>/var/spool/mail.  This has been working extremely well for several years 
>and linux installs, but claws-mail will need to be notified by some other 
>means to go get and sort the mail.

You can trigger Claws-Mail to receive mail with the --receive and
--receive-all command line switches.

>How would one go about doing that from this looping script since claws-mail 
>doesn't have a dbus port?

One of the examples of the python plugin is to add a simple dbus
interface, which would also allow you to trigger mail receiving
externally

dbus-send --session --type=method_call --dest=org.ClawsMail.PythonPlugin /org/ClawsMail/PythonPlugin org.ClawsMail.PythonPlugin.MainWindow.TriggerGtkAction string:'Message/Receive/AllAccounts'

But if you just want to trigger receiving, the command line switch is
easier, and has the additional benefit of starting Claws Mail if it's not
yet running.

Holger



More information about the Users mailing list