> On September 16, 2016 at 7:34 PM Benny Pedersen <m...@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 anyway

Or 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

Reply via email to