View Single Post
  #34 (permalink)  
Old 02-20-2007, 03:05 PM
dlbewley dlbewley is offline
Senior Member
 
Posts: 61
Post 1.213 works as is

Quote:
Originally Posted by dkarp View Post
Don't use imapsync version 1.200 or later unless you've applied the patch from earlier in the thread. Earlier versions should work fine.

I was using 1.182 due to the internal dates not syncing. I found that it would hang a long time on large emails. I did an strace on the process and it was doing lots of mremap'ing.

I checked for a new imapsync and found this in the changelog
Quote:
revision 1.213
date: 2007/02/16 04:07:19; author: gilles; state: Exp; lines: +168 -11
- Back to append_file() modified -> append_file2()
I tested 1.213 with no additional patches and it synced the dates just fine. I haven't done much comparison yet, but it seemed faster. Here's my command:

Code:
time ./imapsync.1.213 \
    --ssl1 --authmech1 PLAIN --host1 $HOST_FROM --user1 "${USER}${DOVECOT_MASTER}" --passfile1 $PWORD \
    --exclude '^UCD-spam-\d\d' \
    --ssl2 --authmech2 PLAIN --host2 $HOST_TO   --user2 $USER --passfile2 $PWORD \
    --regextrans2 's/UCD-spam/Junk/' \
    --syncinternaldates \
    1>&2 >> $LOG
Reply With Quote