Hi all! There is a script to convert maildir to mailbox in wiki: http://wiki.dovecot.org/Migration/MailFormat but it doesn't convert any message flags (seen e.t.c.). I wrote a script, which converts most flags and labels: https://bitbucket.org/citrin/scripts/src/tip/dovecot-maildir2mbox.pl It doesn't convert recent flag and UIDs though, because it was not necessary in my case. Do you think link to the script should be added to dovecot wiki? -- WBR, Anton Yuzhaninov P. S. My use case was: get maildir from other server, convert to mbox, compress (gzip -9) and add to my mailbox as read-only archive.
On 2016-09-16 17:50, Anton Yuzhaninov wrote:> Do you think link to the script should be added to dovecot wiki?may i ask for one that makes mbox2maildir ? would it be possible to make this into imapsync ? (also a perl script) thanks for the script anyway
> On September 16, 2016 at 7:34 PM Benny Pedersen <me at junc.eu> wrote: > > > On 2016-09-16 17:50, Anton Yuzhaninov wrote: > > > Do you think link to the script should be added to dovecot wiki? > > may i ask for one that makes mbox2maildir ? > > would it be possible to make this into imapsync ? (also a perl script) > > thanks for the script anywayOr you can use dovecot. doveadm import -u user -s mbox:/path/to/dir INBOX all Put mbox as file called inbox under some dir and make sure its readwritable by target user uid. Similarly you can use doveadm sync if you want to keep syncing it for a while or do on the fly migration. 1. Edit dovecot.conf and change mail_location to new format and location. 2. Run doveadm sync -u user mbox:path 3. Restart dovecot 4. Run sync again Aki
Possibly Parallel Threads
- 1.0.10 - Cached message offset lost
- gzip compressed mbox: Panic: file istream-zlib.c: line 421 (i_stream_zlib_seek): assertion failed: (ret == -1)
- BUG - DELETE Public/Folder not working with Thunderbird
- gzip compressed mbox: Panic: file istream-zlib.c: line 421 (i_stream_zlib_seek): assertion failed: (ret == -1)
- gzip compressed mbox: Panic: file istream-zlib.c: line 421 (i_stream_zlib_seek): assertion failed: (ret == -1)