[Dovecot] Merge multiple doveadm commands

Timo Sirainen tss at iki.fi
Fri Aug 31 13:04:09 EEST 2012


On 31.8.2012, at 13.01, Ralf Hildebrandt wrote:

> Can I merge these three commands into one?
> 
> doveadm expunge -u %s mailbox \"INBOX.Deleted Messages\" NOT NEW
> doveadm expunge -u %s mailbox INBOX.Trash NOT NEW
> doveadm expunge -u %s mailbox INBOX deleted

doveadm expunge -u %s \( mailbox \"INBOX.Deleted Messages\" NOT NEW \) or \( mailbox INBOX.Trash NOT NEW \) or \( mailbox INBOX deleted \)

(Does "new" actually work? I'm not sure if that's intentional, or simply a side effect of some IMAP behavior accidentally spilling over.. :)




More information about the dovecot mailing list