2.2.26.0 : accessing "mdbox_deleted" content destroys indexes

Benoit Branciard Benoit.Branciard at univ-paris1.fr
Wed Jan 25 14:13:31 UTC 2017


Accessing or listing "mdbox_deleted" contents seems to destroy MDBOX 
indexes.

Examples of commands which triggers this problem ($home being the home 
directory of $user, and mail_location being mdbox:~/mdbox):

doveadm -o mail="mdbox_deleted:$home/mdbox" -f table mailbox status -u 
"$user" 'messages vsize' INBOX

doveadm -v import -s -u "$user" "mdbox_deleted:$home/mdbox" 
restored-mail ALL

The above "doveadm mailbox status" command outputs an error:

doveadm(user): Error: Log synchronization error at seq=1,offset=104908 
for (in-memory index): Append with UID 1, but next_uid = 5227
doveadm(user): Warning: fscking index file (in-memory index)

Subsequent "doveadm mailbox status -u $user 'messages vsize'"  on the 
active mailbox report empty folders (null messages and vsize), whereas 
folders actually aren't empty.

Workaround: this problem is corrected by a "doveadm search -u $user 
all", which obviously forces indexes to be rebuilt.

Vesion: 2.2.26.0 (23d1de6) (Debian jessie-backports package)

We did *not* have this problem in 2.2.24 version (previous Debian 
jessie-backports package).

We use following mail_location with explicit DIRNAME (don't know if that 
matters):

mail_location = mdbox:~/mdbox:DIRNAME=_@@_dbox-Mails_@@_

I tested with and without appending ":DIRNAME=_@@_dbox-Mails_@@_" to 
mail="mdbox_deleted:$home/mdbox" with same results.


-- 
Benoit BRANCIARD
Service InfraStructures (SIS)
Direction du Système d'Information et des Usages Numériques (DSIUN)
Université Paris 1 Panthéon-Sorbonne
Centre Pierre Mendès France
90 rue de Tolbiac - 75634 Paris cedex 13 - France
Bur. B406 - Tél +33 1 44 07 89 68 - Fax +33 1 44 07 89 66
Accueil: +33 1 44 07 89 65 - Assistance-DSIUN at univ-paris1.fr
http://dsi.univ-paris1.fr


More information about the dovecot mailing list