Help with migration to Dovecot from raw files

2020-03-26 Thread Stefano Antonelli
Hello list, I recently migrated to Dovecot from a very old version of IceWarp running on failing hardware running Windows XP. I had a lot of issues downloading mail through imap. What I have instead are the email files directly off the harddrive from IceWarp's mail store. I rearranged the

Re: Help with migration to Dovecot from raw files

2020-03-26 Thread Stefano Antonelli
On 2020-03-26 03:37, Aki Tuomi wrote: You could try something simple like just for n in *; do cat $n | doveadm save -u targetuser; done Thank you. This "works" in that it renames the files for me. However, 1. the filename timestamps are all similar (ie. time of import) 2. the emails showed

Re: Help with migration to Dovecot from raw files

2020-03-28 Thread Stefano Antonelli
On 2020-03-26 12:03, Stefano Antonelli wrote: On 2020-03-26 03:37, Aki Tuomi wrote: You could try something simple like just for n in *; do cat $n | doveadm save -u targetuser; done Thank you. This "works" in that it renames the files for me. However, 1. the filename timestam

Re: Help with migration to Dovecot from raw files

2020-03-29 Thread Stefano Antonelli
On 2020-03-28 23:54, Stefano Antonelli wrote: I've attached my script in case it's helpful to anyone in a similar situation. It took quite a bit of effort to get this right, highly depends on the format of the original mailstore, and I've only tested this on one smaller mailbox