[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [imapsync] Can I leave out mails with the flag \deleted?


From Ralf Hildebrandt <Ralf dot Hildebrandt at charite dot de>
Subject Re: [imapsync] Can I leave out mails with the flag \deleted?
Date Wed, 5 Aug 2009 11:55:39 +0200

* Stefan Schmidt <jsj at jsj dot dyndns dot org>:
> On Tuesday 04 August 2009 15:20:49 Ralf Hildebrandt wrote:
> > Can I leave out mails with the flag \deleted when syncing? How?
> >
> > Of course my users cannot be bothered to clean/compress/expunge their
> > mailbox BEFORE I'm migrating it. Becuase if they could, they wouldn't
> > have me do it :(
> 
> From what I can see from the usage message, "--expunge --expunge1" 
> shoudl do the compression and deletion of marked deleted messages before 
> tranfer.
> 
> You are moving from dovecot to MS Exchange?

Yes

> IIRC Exchange does not bother to accept mails with this flag and will 
> more or less silently not transfer the marked mail.

OK
 
> FWIW, I migrated from cyrus to Exchange using the following command 
> line:
> /root/bin/imapsync.1_278 \
>  --host1 $CYRUSSERVER --user1 $CYRUSUSER \
>  --authuser1 cyrusadmin --password1  PWCHANGED \
>  --host2 $EXCHANGESERVER --user2 $EXCHANGEUSER \
>  --authuser2 exchangemigration --password2  PWCHANGED \
>  --useheader 'Message-Id' --useheader 'Message-ID' \
>  --useheader 'Received' \
>  --nofoldersizes \
>  --skipsize \
>  --regexflag 's/(\A[^\\]\w+\s)|(\s[^\\]\w+)//g' \
>  --regexflag 's/(\$No.Junk)//g' \
>  --regexflag 's/(No.Junk)//g' \
>  --regexflag 's/(Seen-handled)/Seen/g' \
>  --regexflag 's/(Junk)//g' \
>  --regexflag 's/(\$)//g' \
>  --regexmess 's/^Message-Id/Message-ID/i' \
>  --regextrans2 's/.Drafts{,1}$/Drafts/' \
>  --regextrans2 's/^INBOX$//' \
>  --regextrans2 's/(.{1,})/\/$1/' \
>  --regextrans2 's/(.*)/INBOX$1/' \
>  --regextrans2 's/\.Draft[s]{0,1}$/Drafts/' \
>  --regextrans2 's/.*\/Drafts/Drafts/' \
>  --regextrans2 's/.*\/.Sent/Sent\ Items/' \
>  --exclude '.Trash$' \
>  --fastio1 --fastio2
> 
> So I had a big deal with removing flags Exchange does want to know about 

Same here :)

> and moving folders to places where an Exchange user expects her/his 
> mails.

Same here :((

> I looped it for 2 weeks in 4 threads over all users with a final run 
> after the deliver switch.
> I do not recall any issues with deleted mails, except omitting the 
> .Trash folder from squirrelmail or TB.

Yes, I skipped .Trash
 
-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf dot hildebrandt at charite dot de | http://www.charite.de