On 28.10.2010, at 5.50, Kui Zhang wrote:

> doveadm -Dv expunge -u u...@domain mailbox ".EXPUNGED/*" savedbefore 7d
..
> doveadm(u...@domain): Debug: expunge: box=.EXPUNGED/INBOX/mon uid=791
> doveadm(u...@domain): Info: expunge: box=INBOX/mon, uid=196,
> msgid=<e1owjm4-0000j4...@domain>, size=1856
> 
> So what is the diff between "Debug: expunge" and "Info: expunge".

The "Debug: expunge" is written by doveadm, because you gave it a -D parameter. 
It tells what messages it's about to expunge. The "Info: expunge" is written by 
mail_log plugin when anything gets expunged.

> 1.A.
> Would not it be faster not to enumerate for large mailboxes (30-40GB -
> Maildir)? Is it possible to add a switch, to select single user
> expunge behavior?
> ref: http://www.mail-archive.com/dovecot@dovecot.org/msg32322.html

I don't understand. The default is to expunge only a single user. And why do 
you mention maildir if you're using mdbox? In any case the size of the mailbox 
is rather irrelevant. Number of messages is more relevant.

> 2.
> Also. expunge does not appear to remove empty mailboxes, is this a bug
> or intentional? If intentional, why? Any way to automated removal of
> empty mailboxes?

Well, for your situation when removing mails from .EXPUNGED/ it makes sense, 
but for anything else it definitely shouldn't be automatically deleting any 
mailboxes. Maybe there could be an option to do this, although it's a bit 
problematic if doveadm expunge is being run at the same time as user is 
expunging more messages. It shouldn't delete mailbox if new messages just got 
added there. (And that probably isn't very easy to implement.)

Reply via email to