21 Jan
2011
21 Jan
'11
5:36 p.m.
On 2011-01-20 6:08 PM, Timo Sirainen wrote:
On Thu, 2011-01-20 at 23:50 +0100, Jan-Frode Myklebust wrote:
But this woun´t work if the maildir has been modified outside of dovecot (i.e. webmail usage). Are there any simple interface I can use in this short snippet for noticing that the index is out of sync, and update it ?
With v2.0 you could use doveadm easily (you can also just use doveadm binary from v2.0 and keep using v1.2 elsewhere):
doveadm mailbox status unseen inbox
If you're actually running v2.0 you can also ask this information via UNIX/TCP socket.
Easiest would be to just use a webmail app that talks IMAP and let it talk directly to dovecot... ?
--
Best regards,
Charles