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 vs ize=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.
Nope, expunged only. If they just have DELETED flag, they are not expunged yet.
After expunging still reporting 0. I am starting feel a bit like idiot. You want to have some manpage that is dedicated to deleting counting and restoring mail :)
[@ testtest]# doveadm expunge -u testtest mailbox 'INBOX/test2' DELETED doveadm(testtest): Info: expunge: box=INBOX/test2, msgid=202009061345.086Dj3vv026298@xxxxxxx doveadm(testtest): Info: expunge: box=INBOX/test2, msgid=202009061345.086Dj3vv026298@xxxxxxx doveadm(testtest): Info: expunge: box=INBOX/test2, msgid=202009061345.086Dj3vv026298@xxxxxxx doveadm(testtest): Info: expunge: box=INBOX/test2, msgid=202009061345.086Dj3vv026298@xxxxxxx doveadm(testtest): Info: expunge: box=INBOX/test2, msgid=202009061345.086Dj3vv026298@xxxxxxx
[@ 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 RESTORED messages=0 vsize=0 INBOX messages=0 vsize=0