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

Sync from Googlemail to new gmail (google apps)


From Vinh <arbeitsmaschine at googlemail dot com>
Subject Sync from Googlemail to new gmail (google apps)
Date Sat, 30 Aug 2008 11:40:56 +0800

Hi,

I've been trying to sync my old gmail to my google apps account. I'm
doing the following command:

imapsync --host1 imap.gmail.com \
--port1 993 --user1 gooniefrank at gmail dot com \
--password1  PWCHANGED --ssl1 \
--host2 imap.gmail.com \
--port2 993 --user2 vinh at romanceculture dot com --ssl2 \
--password2  PWCHANGED  \
--syncinternaldates --split1 100 --split2 100 \
--authmech1 LOGIN --authmech2 LOGIN;


I'm constantly getting the error "message_string: expected ... bytes
but received .... at /urs/bin/imapsync 2578".
Going to that line in imapsync I also see some comment which looks a
bit confusing: #BUG? ....#No bug, some servers are buggy.
So in case the google servers are buggy, is there anything I can do?

Here's the output:

$RCSfile: imapsync,v $ $Revision: 1.264 $ $Date: 2008/08/27 15:19:05 $
Here is a [linux] system (Linux geekomp 2.6.20-16-generic #2 SMP Tue
Feb 12 05:41:34 UTC 2008 i686)
with perl 5.8.8
Mail::IMAPClient  2.2.9
IO::Socket        1.29
IO::Socket::SSL   1.01
Digest::MD5       2.36
Digest::HMAC_MD5  1.01
Term::ReadKey
Date::Manip
 and the module Mail::IMAPClient version used here is 2.2.9
Command line used :
/usr/bin/imapsync --host1 imap.gmail.com --port1 993 --user1
gooniefrank at gmail dot com --password1  PWCHANGED --ssl1 --host2 imap.gmail.com
--port2 993 --user2 vinh at romanceculture dot com --ssl2 --password2  PWCHANGED
--syncinternaldates --split1 100 --split2 100 --authmech1 LOGIN
--authmech2 LOGIN
Turned ON syncinternaldates, will set the internal dates on host2 same as host1.
TimeZone:[SGT]
Will try to use LOGIN authentication on host1
Will try to use LOGIN authentication on host2
>From imap server [imap.gmail.com] port [993] user [gooniefrank at gmail dot com]
To   imap server [imap.gmail.com] port [993] user [vinh at romanceculture dot com]
Banner: * OK Gimap ready for requests from 155.69.221.193 30if5089277wfc.2
Host imap.gmail.com says it has NO CAPABILITY for AUTHENTICATE LOGIN
Success login on [imap.gmail.com] with user [gooniefrank at gmail dot com] auth [LOGIN]
Banner: * OK Gimap ready for requests from 155.69.221.193 30if5393165wff.18
Host imap.gmail.com says it has NO CAPABILITY for AUTHENTICATE LOGIN
Success login on [imap.gmail.com] with user [vinh at romanceculture dot com]
auth [LOGIN]
>From capability : XYZZY QUOTA NAMESPACE IDLE UNSELECT CHILDREN IMAP4REV1 XLIST
To   capability : XYZZY QUOTA NAMESPACE IDLE UNSELECT CHILDREN IMAP4REV1 XLIST
>From state Authenticated
To   state Authenticated
Warning: ignoring folder [Google Mail] because it is not selectable
>From separator and prefix : [/][]
To   separator and prefix : [/][]
++++ Calculating sizes ++++
>From Folder [INBOX]                             Size:       453 Messages:     1
>From Folder [[Google Mail]/All Mail]            Size:    333015 Messages:    26
>From Folder [[Google Mail]/Drafts]              Size:         0 Messages:     0
>From Folder [[Google Mail]/Sent Mail]           Size:    269696 Messages:     9
>From Folder [[Google Mail]/Spam]                Size:    214377 Messages:    10
>From Folder [[Google Mail]/Starred]             Size:         0 Messages:     0
>From Folder [[Google Mail]/Trash]               Size:   2571489 Messages:   256
Total size: 3389030
Total messages: 302
Time: 26 s
++++ Calculating sizes ++++
To   Folder [INBOX]                             Size:         0 Messages:     0
To   Folder [[Google Mail]/All Mail]            Size:         0 Messages:     0
To   Folder [[Google Mail]/Drafts]              Size:         0 Messages:     0
To   Folder [[Google Mail]/Sent Mail]           Size:         0 Messages:     0
To   Folder [[Google Mail]/Spam]               does not exist yet
To   Folder [[Google Mail]/Starred]            does not exist yet
To   Folder [[Google Mail]/Trash]              does not exist yet
Total size: 0
Total messages: 0
Time: 6 s
++++ Listing folders ++++
>From folders list : [INBOX] [[Google Mail]/All Mail] [[Google
Mail]/Drafts] [[Google Mail]/Sent Mail] [[Google Mail]/Spam] [[Google
Mail]/Starred] [[Google Mail]/Trash]
To   folders list : [INBOX] [[Google Mail]/All Mail] [[Google
Mail]/Drafts] [[Google Mail]/Sent Mail] [[Google Mail]/Spam] [[Google
Mail]/Starred] [[Google Mail]/Trash]
++++ Looping on each folder ++++
>From Folder [INBOX]
To   Folder [INBOX]
++++ From [INBOX] Parse 1 ++++
++++ To   [INBOX] Parse 1 ++++
++++ Verifying [INBOX] -> [INBOX] ++++
+ NO msg #451 [FxCemoH5zsYMIW6w90uPUg:453] in INBOX
+ Copying msg #451:453 to folder INBOX
message_string: expected 453 bytes but received 454 at
/usr/bin/imapsync line 2578
        main::__ANON__('Mail::IMAPClient=HASH(0x86767e0)', 451) called
at /usr/bin/imapsync line 1403
flags from : [()]["29-Aug-2008 22:02:05 +0800"]
Copied msg id [451] to folder INBOX msg id [Mail::IMAPClient=HASH(0x83ee248)]
Time: 6 s
>From Folder [[Google Mail]/All Mail]
To   Folder [[Google Mail]/All Mail]
++++ From [[Google Mail]/All Mail] Parse 1 ++++
++++ To   [[Google Mail]/All Mail] Parse 1 ++++
++++ Verifying [[Google Mail]/All Mail] -> [[Google Mail]/All Mail] ++++
+ NO msg #1 [s2879S9hQFDKdDM6gnh0fg:814] in [Google Mail]/All Mail
+ Copying msg #1:814 to folder [Google Mail]/All Mail
message_string: expected 814 bytes but received 816 at
/usr/bin/imapsync line 2578
        main::__ANON__('Mail::IMAPClient=HASH(0x86767e0)', 1) called
at /usr/bin/imapsync line 1403
flags from : [\Seen]["03-Mar-2007 09:41:29 +0800"]
Copied msg id [1] to folder [Google Mail]/All Mail msg id
[Mail::IMAPClient=HASH(0x83ee248)]
+ NO msg #2 [bGpTzWxIqbOaep2Z417vaA:2787] in [Google Mail]/All Mail
+ Copying msg #2:2787 to folder [Google Mail]/All Mail
message_string: expected 2787 bytes but received 2814 at
/usr/bin/imapsync line 2578
        main::__ANON__('Mail::IMAPClient=HASH(0x86767e0)', 2) called
at /usr/bin/imapsync line 1403
flags from : [\Seen]["04-Mar-2007 23:23:16 +0800"]
Copied msg id [2] to folder [Google Mail]/All Mail msg id
[Mail::IMAPClient=HASH(0x83ee248)]
+ NO msg #3 [GvBL/vgMWweLX0tm3IkDtg:1094] in [Google Mail]/All Mail
+ Copying msg #3:1094 to folder [Google Mail]/All Mail
flags from : [\Seen]["05-Mar-2007 00:01:32 +0800"]
Copied msg id [3] to folder [Google Mail]/All Mail msg id
[Mail::IMAPClient=HASH(0x83ee248)]
+ NO msg #4 [RI/XTwgWnrEWH+RnRZI4DA:5614] in [Google Mail]/All Mail
+ Copying msg #4:5614 to folder [Google Mail]/All Mail
message_string: expected 5614 bytes but received 5746 at
/usr/bin/imapsync line 2578
        main::__ANON__('Mail::IMAPClient=HASH(0x86767e0)', 4) called
at /usr/bin/imapsync line 1403
flags from : [\Seen]["05-Mar-2007 15:21:40 +0800"]
......