[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SV: SV: [imapsync] Problem with exchange 2007
|
From |
"Phil Pearl (Lobbes)" <phil at zimbra dot com> |
|
Subject |
Re: SV: SV: [imapsync] Problem with exchange 2007 |
|
Date |
Tue, 12 Jan 2010 07:42:37 -0800 (PST) |
Regarding the error:
> Use of uninitialized value $smess in numeric eq (==) at /usr/bin/imapsync line 1163.
I would try running with the '--nofoldersizes' option (or try the patch below). There appear to be some bugs in the foldersizes() subroutine as error checking is limited there. Below is a quick (untested) patch which would handle most errors. It isn't as paranoid/strict as I like, but certainly better than the current lack of checks.
The patch below adds IsUnconnected() checks in key places in foldersizes() and will use lost_connection() to report connection related errors.
Phil
--- imapsync.ORIG 2010-01-12 00:34:53.000000000 -0500
+++ imapsync 2010-01-12 10:38:03.000000000 -0500
@@ -1133,6 +1133,7 @@
my @folders = @{$folders_r};
print "++++ Calculating sizes ++++\n";
foreach my $folder (@folders) {
+ last if $imap->IsUnconnected();
my $stot = 0;
my $smess = 0;
printf("$side Folder %-35s", "[$folder]");
@@ -1173,6 +1174,7 @@
$tot += $stot;
$tmess += $smess;
}
+ return undef if $imap->IsUnconnected();
print "Total size: $tot\n";
print "Total messages: $tmess\n";
print "Time: ", timenext(), " s\n";
@@ -1189,7 +1191,9 @@
if ($foldersizes) {
foldersizes("From", $from, \ at f_folders);
+ exit($error) if (lost_connection($from,"(from) host1 [$host1]"));
foldersizes("To ", $to, \ at t_folders);
+ exit($error) if (lost_connection($to,"(to) host2 [$host2]"));
}
----- Original Message -----
From: "Peter Sørensen" <maspsr at sdu dot dk>
To: "Peter Sørensen" <maspsr at sdu dot dk>, "Gilles LAMIRAL" <gilles dot lamiral at laposte dot net>
Cc: imapsync at linux-france dot org
Sent: Tuesday, January 12, 2010 4:30:06 AM
Subject: SV: SV: [imapsync] Problem with exchange 2007
Hi Again,
I installed the ImapClient lib 3.19 and got around the Ssl error.
Now I can Migrate a fairly small mailbox but when I try this with a big one
I-m getting error like:
RCSfile: imapsync,v $ $Revision: 1.293 $ $Date: 2010/01/12 05:34:27 $
Here is a [linux] system (Linux mxgw3.sdu.dk 2.6.28-17-server #58-Ubuntu SMP Tue Dec 1 19:58:28 UTC 2009 i686)
with perl 5.10.0
Mail::IMAPClient 3.19
IO::Socket 1.30_01
IO::Socket::SSL
Digest::MD5 2.36_01
Digest::HMAC_MD5
Term::ReadKey
Date::Manip
and the module Mail::IMAPClient version used here is 3.19
Command line used:
/usr/bin/imapsync --host1 10.9.81.30 --ssl1 --user1 adm\maspsr --password1 PWCHANGED --host2 berlioz.imada.sdu.dk --ssl2 --user2 peters --password2 PWCHANGED --noauthmd5
Turned ON syncinternaldates, will set the internal dates (arrival dates) on host2 same as host1.
TimeZone:[CET]
Will try to use LOGIN authentication on host1
Will try to use LOGIN authentication on host2
>From imap server [10.9.81.30] port [993] user [adm\maspsr]
To imap server [berlioz.imada.sdu.dk] port [993] user [peters]
Banner: * OK The Microsoft Exchange IMAP4 service is ready.^M
Host 10.9.81.30 says it has NO CAPABILITY for AUTHENTICATE LOGIN
Success login on [10.9.81.30] with user [adm\maspsr] auth [LOGIN]
Banner: * OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS AUTH=PLAIN AUTH=LOGIN] berlioz.imada.sdu.dk IMAP4rev1 2003.338 at Tue, 12 Jan 2010 10:28:09 +0100 (CET)^M
Host berlioz.imada.sdu.dk says it has CAPABILITY for AUTHENTICATE LOGIN
Success login on [berlioz.imada.sdu.dk] with user [peters] auth [LOGIN]
host1: state Authenticated
host2: state Authenticated
>From separator and prefix: [/][]
To separator and prefix: [/][]
++++ Calculating sizes ++++
>From Folder [ Drafts] Use of uninitialized value $smess in numeric eq (==) at /usr/bin/imapsync line 1163.
Size: 0Use of uninitialized value $smess in printf at /usr/bin/imapsync line 1172.
Messages:
Use of uninitialized value $smess in addition (+) at /usr/bin/imapsync line 1174.
>From Folder [AMAVIS-users] Trying command when NOT connected! at /usr/local/share/perl/5.10.0/Mail/IMAPClient.pm line 95
Mail::IMAPClient::LastError('Mail::IMAPClient=HASH(0x99ca398)', 'NO not connected') called at /usr/local/share/perl/5.10.0/Mail/IMAPClient.pm line 1398
Mail::IMAPClient::_send_line('Mail::IMAPClient=HASH(0x99ca398)', '168 STATUS AMAVIS-users (MESSAGES)', 0) called at /usr/local/share/perl/5.10.0/Mail/IMAPClient.pm line 1259
Mail::IMAPClient::_imap_command_do('Mail::IMAPClient=HASH(0x99ca398)', 'STATUS AMAVIS-users (MESSAGES)') called at /usr/local/share/perl/5.10.0/Mail/IMAPClient.pm line 1171
Mail::IMAPClient::_imap_command('Mail::IMAPClient=HASH(0x99ca398)', 'STATUS AMAVIS-users (MESSAGES)') called at /usr/local/share/perl/5.10.0/Mail/IMAPClient.pm line 2163
Any Ideas ?
regards
Peter
________________________________________
Fra: Peter Sørensen [maspsr at sdu dot dk]
Sendt: 12. januar 2010 09:29
Til: Gilles LAMIRAL
Cc: imapsync at linux-france dot org
Emne: SV: SV: [imapsync] Problem with exchange 2007
Hi,
I have downloaded and installed the 1.293 version. Now I get following:
RCSfile: imapsync,v $ $Revision: 1.293 $ $Date: 2010/01/12 05:34:27 $
Here is a [linux] system (Linux mxgw3.sdu.dk 2.6.28-17-server #58-Ubuntu SMP Tue Dec 1 19:58:28 UTC 2009 i686)
with perl 5.10.0
Mail::IMAPClient 3.12
IO::Socket 1.30_01
IO::Socket::SSL
Digest::MD5 2.36_01
Digest::HMAC_MD5 1.01
Term::ReadKey
Date::Manip
and the module Mail::IMAPClient version used here is 3.12
Command line used:
/usr/bin/imapsync --host1 10.9.81.30 --ssl1 --user1 adm\maspsr --password1 PWCHANGED --host2 berlioz.imada.sdu.dk --ssl2 --user2 peters --password2 PWCHANGED --noauthmd5 --dry
Turned ON syncinternaldates, will set the internal dates (arrival dates) on host2 same as host1.
TimeZone:[CET]
Will try to use LOGIN authentication on host1
Will try to use LOGIN authentication on host2
>From imap server [10.9.81.30] port [993] user [adm\maspsr]
To imap server [berlioz.imada.sdu.dk] port [993] user [peters]
Can't locate object method "Ssl" via package "Mail::IMAPClient" at /usr/bin/imapsync line 757.
Why is that ?
best regards
Peter
________________________________________
Fra: Gilles LAMIRAL [gilles dot lamiral at laposte dot net]
Sendt: 12. januar 2010 04:38
Til: Peter Sørensen
Cc: imapsync at linux-france dot org
Emne: Re: SV: [imapsync] Problem with exchange 2007
Hello Peter,
> Sending: 15 STATUS " Drafts" (MESSAGES)
>
> Sent 32 bytes
> Use of uninitialized value $smess in numeric eq (==) at /usr/bin/imapsync line 1099.
> Size: 0Use of uninitialized value $smess in printf at /usr/bin/imapsync line 1108.
> I am using version 1.252 on Ubuntu 9.04
Upgrade imapsync since revision 1.252 has date: 2008/05/08 02:30:17;
http://www.linux-france.org/prj/imapsync/imapsync
Still relevant with any bug report:
> Help us to help you: in your report, please include:
>
> - imapsync version.
> - output given with --debug --debugimap near the failure point.
> Isolate a message in a folder 'BUG' and use --folder 'BUG'
> - imap server software on both side and their version number.
> - imapsync with all the options you use, the full command line
> you use (except the passwords of course).
> - IMAPClient.pm version.
> - operating system running imapsync.
> - operating systems on both sides and the third side in case
> you run imapsync on a foreign host from the both.
> - virtual software context (vmware, xen etc.)
>
> Most of those values can be found as a copy/paste at the begining of the output.
--
Au revoir, 02 99 64 31 77
Gilles Lamiral. France, Chavagne (35310) 06 20 79 76 06
---- imapsync mailing-list ----
unsubscribe, mailto:imapsync-unsubscribe at listes dot linux-france dot org
imapsync, http://linux-france.org/prj/imapsync/
---- imapsync mailing-list ----
unsubscribe, mailto:imapsync-unsubscribe at listes dot linux-france dot org
imapsync, http://linux-france.org/prj/imapsync/