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

Re: [imapsync] migration support from zarafa to dovecot [Out of memory!]


From Jelle de Jong <jelledejong at powercraft dot nl>
Subject Re: [imapsync] migration support from zarafa to dovecot [Out of memory!]
Date Thu, 30 Dec 2010 21:01:26 +0100

Hi Gilles,

On 30-12-10 20:27, Jelle de Jong wrote:
> On 30-12-10 20:22, Gilles LAMIRAL wrote:
>>>> After this the "Out of memory!" happens.
>>>
>>> It seems using --useheader 'Message-ID' solves this error is it save to
>>> use this option for all inboxes when doing a migration?
>>
>> Safe most of the time, all the time with recent imapsync release.
> 
> Sadly it did not solve the problem, I thought it did but i still got a
> "Out of memory!". I am also getting imapsync being killed due to memory
> issues. (see the attachment)
> 
> In my first mail I showed my version:
> 
> $RCSfile: imapsync,v $ $Revision: 1.315 $ $Date: 2010/06/11 02:51:54 $
> Here is a [linux] system (Linux kristy 2.6.32-5-686 #1 SMP Thu Oct 14
> 17:15:16 UTC 2010 i686) with perl 5.10.1 Mail::IMAPClient  3.25 and the
> module Mail::IMAPClient version used here is 3.25
> 
> Is it save to use an other perl imapsync script version?

I checked the memory process and saw imapsync slowly eating up 3GB of
RAM!:) I terminated it on the end.

# imapsync \
> --allowsizemismatch \
> --noauthmd5 \
> --host1 192.168.30.5 \
> --ssl1 --port1 993 \
> --sep1 / \
> --prefix1 "" \
> --syncinternaldates \
> --skipsize \
> --split1 500 \
> --user1 username \
> --passfile1 ~/secret3 \
> --regextrans2 's#Deleted Items#Trash#' \
> --regextrans2 's#Infected Items#Junk#' \
> --regextrans2 's#Junk E-mail#Junk#' \
> --regextrans2 's#Outbox#Drafts#' \
> --regextrans2 's#Sent Items#Sent#' \
> --regextrans2 's#Ongewenste e-mail#Junk#' \
> --regextrans2 's#trash#Trash#' \
> --regextrans2 's#Deleted Messages#Trash#' \
> --regextrans2 's#Verzonden items#Sent#' \
> --regextrans2 's#Concepten#Drafts#' \
> --exclude "Public folders" \
> --subscribe \
> --delete \
> --expunge \
> --host2 imap.company.org \
> --tls2 \
> --authmech2 PLAIN \
> --sep2 . \
> --user2 user at company dot org \
> --passfile2 ~/secret4 >> user at company dot org dot txt

That is the command I use.

The last lines in the log:

++++ Host2 [Sent] parsing headers ++++
++++ Verifying [Sent Items] -> [Sent] ++++
+ NO msg #0 [dau/6zn8WQnn5QmRX3/asg] in Sent
+ Copying msg #0:267602 to folder Sent

What should I do?

--useheader 'Message-ID' \
and
--useheader 'Message-Id' \

But then I get a lot of errors about headers not found...

With kind regards,

Jelle de Jong