Re: inotifywait -m -e close --format %f

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday, 2011-01-17, gene heskett wrote:
> Greetings;
> 
> Is there a way I can mate an output from the above command line, watching
> /var/spool/mail, to trigger a 'check mail' function in the recent kmail?
> 
> This is a case of not needing the text output, but just the occurrence of
> the output, used as an interrupt to kmail.  This would synchronize kmail
> with the activities of fetchmail and procmail/SA so I see incoming mail
> several minutes quicker.

You could execute the checkMail action (check all accounts for new mail) via 
D-Bus:

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

There is also a checkAccount action for checking only one account, but I 
didn't have time to look into that yet.

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring

Attachment: signature.asc
Description: This is a digitally signed message part.

___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux