View previous topic :: View next topic |
Author |
Message |
jagdpanther l33t

Joined: 22 Nov 2003 Posts: 792
|
Posted: Sun Jun 08, 2025 8:40 pm Post subject: Convert Email from Mbox to MailDir Format |
|
|
I think I want to switch my local e-mail messages from mbox to MailDir format after reading:
https://doc.dovecot.org/2.4.1/core/config/mailbox_formats/mbox.html which states:
Quote: | DANGER
Mbox format is deprecated and should not be used in production setups at all.
Mbox is no longer being maintained for write fixes, for any new or advanced features, nor for optimization improvements.
It still exists solely to read old mail storages, and for backwards utility purposes (specifically for archival purposes, as mbox allows multiple messages to be natively stored in a single file).
In a production system, a more modern mailbox format should be used, e.g., dbox (or Maildir). |
Any advice on a recommended way to convert from mbox to MailDir on my Gentoo system?
I found some information like the following but it seems rather old.
https://github.com/danburzo/gmail-mbox2maildir
https://www.blrtools.com/blog/convert-mbox-to-maildir-format/ |
|
Back to top |
|
 |
grknight Retired Dev

Joined: 20 Feb 2015 Posts: 2277
|
Posted: Sun Jun 08, 2025 10:39 pm Post subject: |
|
|
If using dovecot already, why not use its built in tool to accomplish this? https://doc.dovecot.org/2.4.1/core/man/doveadm-sync.1.html#backup
https://doc.dovecot.org/2.4.1/core/man/doveadm-sync.1.html#backup: | DESCRIPTION
dsync (short for doveadm sync) is Dovecot's mailbox synchronization feature. It can be used for several different use cases: Two-way synchronization of mailboxes, creating backups of mails, and convert mailboxes from/to different mailbox formats. All of these can be used within the same server or between different servers (via ssh(1) or tcp connections). Remote mailboxes can be accessed also via IMAP protocol, which allows using dsync for mailbox migration purposes. |
|
|
Back to top |
|
 |
jagdpanther l33t

Joined: 22 Nov 2003 Posts: 792
|
Posted: Mon Jun 09, 2025 12:59 am Post subject: |
|
|
grknight: Thank you. I did not know about the dsync tool. I plan to try it. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|