[Dovecot] doveadm purge output

Daniel L. Miller dmiller at amfes.com
Tue Nov 23 20:40:47 EET 2010

On 11/23/2010 9:33 AM, Timo Sirainen wrote:
> On Tue, 2010-11-23 at 07:35 -0800, dmiller at amfes.com wrote:
>>> See if this finds any messages with refcount=0:
>>> doveadm dump ~/mdbox/storage/ | grep 'ref.*\b0\b'
>>   Yes it does.
> Umm.. Well.. Make sure it prints the correct mdbox location:
> doveadm -o mail_debug=yes -D -v purge -u username
username = assp-bayes

doveadm -o mail_debug=yes -D -v purge -u username at amfes.com

<trimmed off module messages>
doveadm(username at amfes.com): Debug: auth input: username at amfes.com 
mail=mdbox:/var/mail/amfes.com/assp-bayes/mdbox uid=5000 gid=8
doveadm(username at amfes.com): Debug: Added userdb setting: 
doveadm(username at amfes.com): Debug: Effective uid=5000, gid=8, 
doveadm(username at amfes.com): Debug: Namespace : type=private, prefix=, 
sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes 
doveadm(username at amfes.com): Debug: fs: 
root=/var/mail/amfes.com/assp-bayes/mdbox, index=, control=, inbox=
doveadm(username at amfes.com): Debug: Namespace : Using permissions from 
/var/mail/amfes.com/assp-bayes/mdbox: mode=0700 gid=-1

doveadm dump /var/mail/amfes.com/username/ | grep 'ref.*\b0\b'
<several lines with>
  - ext 3 ref       :          0 (0000)

Now this is weird - last run an hour ago against a particular user had a 
bunch of entries - now I show none for that user (my spam cc user, which 
I deleted a quantity of mails out of to test this).  And another user 
that didn't have any (my own) now shows a few.

Haven't tried running a purge again yet.

More information about the dovecot mailing list