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



On Fri, 2009-04-03 at 10:57 +0530, sandeep gupta wrote:
> 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.
> 
sqlite3 ~/.evolution/mail/local/folders.db "select count(*) from outbox
where deleted != 1"

This could return you the exact number of mails waiting on the outbox. 

-Srini



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