Marc
2021-Mar-15 12:57 UTC
archive namespace reports mdbox_deleted: same as mdbox: is that ok?
New test step 1. ======initial state inbox and deleted [@ testtest]# doveadm -o mail_location=mdbox:/home/popusers/testtest/mdbox:INDEX=/home/popindex/testtest/index mailbox status -u testtest 'messages vsize' '*' Sent messages=17 vsize=7473 Drafts messages=6 vsize=67170 INBOX/test2 messages=198 vsize=12552420 Junk messages=2 vsize=1969 Deleted Messages messages=0 vsize=0 Trash messages=47 vsize=769284 INBOX messages=1117 vsize=207623033 [@ testtest]# doveadm -o mail_location=mdbox_deleted:/home/popusers/testtest/mdbox:INDEX=/home/popindex/testtest/index mailbox status -u testtest 'messages vsize' '*' Sent messages=0 vsize=0 Drafts messages=0 vsize=0 INBOX/test2 messages=0 vsize=0 Junk messages=0 vsize=0 Deleted Messages messages=0 vsize=0 Trash messages=0 vsize=0 INBOX messages=2 vsize=89284 step 2. ======check if we have messages indeed stored [@ testtest]# grep 45765765870 /home/popusers/testtest/mdbox/storage/* /home/popusers/testtest/mdbox/storage/m.893:Subject: New file uploaded 45765765870 step 3. ======delete 5 messages including the one having subject '45765765870' from inbox/test2 mailbox with thunderbird shift+delete, restart thunderbird (otherwise nothing happens on server) step 4. ======verify if messages are indeed deleted, looks like ok, indeed 5 fewer messages. [@ testtest]# doveadm -o mail_location=mdbox:/home/popusers/testtest/mdbox:INDEX=/home/popindex/testtest/index mailbox status -u testtest 'messages vsize' '*' Sent messages=17 vsize=7473 Drafts messages=6 vsize=67170 INBOX/test2 messages=193 vsize=12296609 Junk messages=2 vsize=1969 Deleted Messages messages=0 vsize=0 Trash messages=47 vsize=769284 INBOX messages=1117 vsize=207623033 step 5. ======verify refcount=0 messages in folders, not ok, INBOX/test2 should have 5 [@ testtest]# doveadm -o mail_location=mdbox_deleted:/home/popusers/testtest/mdbox:INDEX=/home/popindex/testtest/index mailbox status -u testtest 'messages vsize' '*' Sent messages=0 vsize=0 Drafts messages=0 vsize=0 INBOX/test2 messages=0 vsize=0 Junk messages=0 vsize=0 Deleted Messages messages=0 vsize=0 Deleted Messages/test messages=0 vsize=0 Trash messages=0 vsize=0 INBOX messages=3 vsize=90243
Marc
2021-Mar-15 13:02 UTC
archive namespace reports mdbox_deleted: same as mdbox: is that ok?
Adding these steps step 6. ======check if we have still them message stored, ok as expected [@ testtest]# grep 45765765870 /home/popusers/testtest/mdbox/storage/* /home/popusers/testtest/mdbox/storage/m.893:Subject: New file uploaded 45765765870 step 7. ======purge mailbox with [@ testtest]# doveadm -v purge -u testtest step 8. ======check if we have still them message stored, no, ok as expected [@ testtest]# grep 45765765870 /home/popusers/testtest/mdbox/storage/* [@ testtest]#
Marc
2021-Mar-15 13:50 UTC
archive namespace reports mdbox_deleted: same as mdbox: is that ok?
> > step 5. > ======> verify refcount=0 messages in folders, not ok, INBOX/test2 should have 5 > > [@ testtest]# doveadm -o > mail_location=mdbox_deleted:/home/popusers/testtest/mdbox:INDEX=/home/po > pindex/testtest/index mailbox status -u testtest 'messages vsize' '*' > Sent messages=0 vsize=0 > Drafts messages=0 vsize=0 > INBOX/test2 messages=0 vsize=0 > Junk messages=0 vsize=0 > Deleted Messages messages=0 vsize=0 > Deleted Messages/test messages=0 vsize=0 > Trash messages=0 vsize=0 > INBOX messages=3 vsize=90243 >This sould list this deleted emails not? If I do doveadm search -u testtest mailbox 'INBOX/test2' DELETED, it lists these emails.