[Evolution-hackers] How to get information that there is some unsent mails pending with evolution??



Hi all,

I want to write a script  that will check any unsent mail in Outbox before shutting down system, if  yes than it will popup a message of unsent mail and ask user to continue shutdown.

I just gone through user evolution profile's Outbox folder  ~./.evolution/mail/local/Outbox. In my script I am checking if this folder have any data than it is unsent mail.
Till that I am getting my script working fine.

But when I moves Outbox mails to any other folder, it seems Outbox having a copy of those mails(not moving mails just copying to other folder).

Can anybody suggest me how to get information that there is no unsent mail pending in evolution by reading user's home  .evolution profile folder. 

Thanks,
skg







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