Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Convert Email from Mbox to MailDir Format
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jagdpanther
l33t
l33t


Joined: 22 Nov 2003
Posts: 792

PostPosted: Sun Jun 08, 2025 8:40 pm    Post subject: Convert Email from Mbox to MailDir Format Reply with quote

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
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2277

PostPosted: Sun Jun 08, 2025 10:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
jagdpanther
l33t
l33t


Joined: 22 Nov 2003
Posts: 792

PostPosted: Mon Jun 09, 2025 12:59 am    Post subject: Reply with quote

grknight: Thank you. I did not know about the dsync tool. I plan to try it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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