Unread mail count from qdbus

CoD cod at cod-web.net
Sun Oct 16 18:50:46 BST 2016


Hi everyone,
I'm trying to retrieve the number of unread mails in kmail/akonadi from a bash 
script but I'm having troubles understanding qdbus.

I'm looking for something simple: I'd be happy even with a "boolean" answer 
such as "yes there are new mails" or "no, nothing new".

I have many accounts, both imap and local, but I need just to know if one of 
them has unread emails.

I've explored qdbus a bit but I can't figure out neither if I should call 
akonadi or kmail nor what's the right method to call, so I decided to bother 
you... sorry for that ;-)

Any help is appreciated :-)


Thank you



CoD



More information about the kde-pim mailing list