On 11/23/2010 9:33 AM, Timo Sirainen wrote:
On Tue, 2010-11-23 at 07:35 -0800, [email protected] 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 [email protected]
<trimmed off module messages>
doveadm([email protected]): Debug: auth input: [email protected]
home=/var/mail/amfes.com/assp-bayes
mail=mdbox:/var/mail/amfes.com/assp-bayes/mdbox uid=5000 gid=8
doveadm([email protected]): Debug: Added userdb setting:
mail=mdbox:/var/mail/amfes.com/assp-bayes/mdbox
doveadm([email protected]): Debug: Effective uid=5000, gid=8,
home=/var/mail/amfes.com/assp-bayes
doveadm([email protected]): Debug: Namespace : type=private, prefix=,
sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes
location=mdbox:/var/mail/amfes.com/assp-bayes/mdbox
doveadm([email protected]): Debug: fs:
root=/var/mail/amfes.com/assp-bayes/mdbox, index=, control=, inbox=
doveadm([email protected]): 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.
--
Daniel