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.
signature.asc
Description: This is a digitally signed message part