Peter Rabbitson wrote:
> Giulio Ferro wrote:
>> Peter Rabbitson wrote:
>>> Giulio Ferro wrote:
>>>  
>>>> I'm in the middle of a mailbox migration from vpopmail to dbmail.
>>>>
>>>> Everything seems to work reasonably well, but I've noticed that those
>>>> boxes which have a lot of folders and subfolders aren't integrally
>>>> copied.
>>>>
>>>> At first not even all folders were copied: I had to run imapsync with
>>>> --justfolders to create them. Then even after executing the program
>>>> repeatedly there where messages not copied.
>>>>
>>>> What's interesting is that the final report showed no error, but only
>>>> messages and bytes skipped > 0.
>>>>
>>>> Why are messages and bytes skipped? Where should I look into?
>>>>     
>>> Please provide your entire command line invoking imapsync.
>>>   
>> Sure:
>> imapsync --host1 <ipaddr1> --host2 <ipaddr2> --user1 <useraddr> --user2
>> <useraddr> --password1 <pass1> --password2 <pass2> --authmech1 PLAIN
>> --authmech2 LOGIN --regextrans2 s/INBOX/oldmail/g
>>
>> imapsync version: 1.264
> 
> Basically you will always have _some_ mistamtched headers etc. The first
> step is to exclude the size comparison. And then exclude headers you are
> not interested in too. I used the following with 1.219 2 years ago hope
> it gives you a starting point:
> 
>     ~/imapsync-1.219/imapsync \
>             --host1 localhost --user1 migrate --password1 abc123
> --authmech1 PLAIN --port1 20143 \
>             --host2 localhost --user2 $user --password2 $pass
> --authmech2 LOGIN \
>             --exclude '^\.|^mbox' --delete2 --expunge2 \
>             --syncinternaldates --subscribe \
>             --skipheader 'X-DBMail-PhysMessage-ID' --skipsize
> 

I mostly skip all headers that may have been re-wrapped by dbmail:

--skipheader
'(^X-|^Received|^MIME-|^Content-Type|^Disposition-|^From|^Cc|^Reply-|^Subject|^To|^DomainKey-).*'
\
                --skipsize --syncinternaldates \
                --exclude '^\..*' \
                --include 'mail/.*' \
                --fast \
                --nosyncacls



-- 
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to