mdbox vs. maildir format
Aki Tuomi
aki.tuomi at open-xchange.com
Tue Oct 18 11:12:01 UTC 2022
> On 18/10/2022 14:09 EEST Marc <marc at f1-outsourcing.eu> wrote:
>
>
> >
> > "Note that with dbox the Index files contain significant data which is
> > held nowhere else. Index files for both sdbox and mdbox contain message
> > flags and keywords. For mdbox, the index file also contains the map_uids
> > which link (via the “map index”) to the actual message data. This data
> > cannot be automatically recreated, so it is important that Index files
> > are treated with the same care as message data files."
> >
> > https://doc.dovecot.org/admin_manual/mailbox_formats/dbox/
> >
>
> Say you lose the index files. Is it not possible to 'script' the 'm.988' files, so all messages are in mbox format and then convert them back to mdbox?
> To me the most important part of the email is the sender and what and when he wrote it. I don't even use flags, and I am not sure what keywords is about.
Dovecot can also reconstruct the indexes usually. There is a small chance that this does not work, but usually the map reconstruction works. Try to avoid losing them anyways.
What you WILL lose is flags (like \Seen) and mail keywords (like $RED). Also you will get new UIDVALIDITY making the folder new.
Aki
More information about the dovecot
mailing list