diff --git a/CREDITS b/CREDITS index e4542b4..38135ac 100644 --- a/CREDITS +++ b/CREDITS @@ -7,6 +7,13 @@ http://www.amazon.com/gp/registry/wishlist/1C9UNDIH3P7R7/ I thank very much all of these people. +Enzo Michelangeli +Made me try a second LOGIN login on first login failure. + +Carlos Roldan +Made me change login() to login2() +SmarterMail success + Florin Andrei Suggested to remove the bad behavior with INBOX and --prefix2 (prefix2 was ignored) diff --git a/ChangeLog b/ChangeLog index 80ccc74..601bfa7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,15 +1,27 @@ RCS file: RCS/imapsync,v Working file: imapsync -head: 1.201 +head: 1.204 branch: locks: strict access list: symbolic names: keyword substitution: kv -total revisions: 201; selected revisions: 201 +total revisions: 204; selected revisions: 204 description: ---------------------------- +revision 1.204 +date: 2007/01/13 07:51:21; author: gilles; state: Exp; lines: +14 -6 +Try LOGIN auth login on first failure login. +---------------------------- +revision 1.203 +date: 2007/01/13 06:58:15; author: gilles; state: Exp; lines: +9 -7 +Server list updated +---------------------------- +revision 1.202 +date: 2007/01/06 05:07:08; author: gilles; state: Exp; lines: +7 -6 +SmarterMail success +---------------------------- revision 1.201 date: 2007/01/03 23:49:10; author: gilles; state: Exp; lines: +30 -6 Use login2() instead of login() (literal form is not always diff --git a/FAQ b/FAQ index 719903d..97a5f8e 100644 --- a/FAQ +++ b/FAQ @@ -3,6 +3,11 @@ | FAQ for imapsync | +------------------+ +======================================================================= +Q. Where I can read IMAP RFCs ? + +R. http://www.faqs.org/rfcs/rfc3501.html + ======================================================================= Q. We have found that the sent time and date have been changed to the time at which the file was synchronised. diff --git a/README b/README index fd8d2a2..24bf072 100644 --- a/README +++ b/README @@ -3,7 +3,7 @@ NAME Synchronise mailboxes between two imap servers. Good at IMAP migration. More than 25 different IMAP server softwares supported with success. - $Revision: 1.201 $ + $Revision: 1.204 $ INSTALL imapsync works fine under any Unix OS. @@ -192,7 +192,7 @@ IMAP SERVERS - dkimap4 2.39 - Imail 7.04 (maybe). - Success stories reported with the following 29 imap servers (softwares + Success stories reported with the following 31 imap servers (softwares names are in alphabetic order) : - BincImap 1.2.3 (GPL) (http://www.bincimap.org/) @@ -201,7 +201,9 @@ IMAP SERVERS (http://www.courier-mta.org/) - Critical Path (7.0.020) - Cyrus IMAP 1.5, 1.6, 2.1, 2.1.15, 2.1.16, 2.1.18 - 2.2.1, 2.2.2-BETA, 2.2.10, 2.2.12, 2.3-alpha (OSI Approved), + 2.2.1, 2.2.2-BETA, 2.2.10, 2.2.12, + v2.2.3-Invoca-RPM-2.2.3-8, + 2.3-alpha (OSI Approved), v2.2.12-Invoca-RPM-2.2.12-3.RHEL4.1, v2.3.1-Invoca-RPM-2.3.1-2.7.fc5, (http://asg.web.cmu.edu/cyrus/) @@ -224,7 +226,8 @@ IMAP SERVERS - Qualcomm Worldmail (NT) - Rockliffe Mailsite 5.3.11 - Samsung Contact IMAP server 8.5.0 - - Scalix v10.1, 10.0.1.3 + - Scalix v10.1, 10.0.1.3, 11.0.0.431 + - SmarterMail - SunONE Messaging server 5.2, 6.0 (SUN JES - Java Enterprise System) - Sun Java System Messaging Server 6.2-2.05 - Surgemail 3.6f5-5 @@ -301,5 +304,5 @@ AUTHOR teaching free open and gratis softwares. Don't hesitate to pay him for that services. - $Id: imapsync,v 1.201 2007/01/03 23:49:10 gilles Exp $ + $Id: imapsync,v 1.204 2007/01/13 07:51:21 gilles Exp $ diff --git a/VERSION b/VERSION index 6ef5c8c..6d12db0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.201 +1.204 diff --git a/imapsync b/imapsync index fac82f6..e618948 100755 --- a/imapsync +++ b/imapsync @@ -7,7 +7,7 @@ tool. Synchronise mailboxes between two imap servers. Good at IMAP migration. More than 25 different IMAP server softwares supported with success. -$Revision: 1.201 $ +$Revision: 1.204 $ =head1 INSTALL @@ -223,7 +223,7 @@ Failure stories reported with the following 4 imap servers : - dkimap4 2.39 - Imail 7.04 (maybe). -Success stories reported with the following 29 imap servers +Success stories reported with the following 31 imap servers (softwares names are in alphabetic order) : - BincImap 1.2.3 (GPL) (http://www.bincimap.org/) @@ -232,7 +232,9 @@ Success stories reported with the following 29 imap servers (http://www.courier-mta.org/) - Critical Path (7.0.020) - Cyrus IMAP 1.5, 1.6, 2.1, 2.1.15, 2.1.16, 2.1.18 - 2.2.1, 2.2.2-BETA, 2.2.10, 2.2.12, 2.3-alpha (OSI Approved), + 2.2.1, 2.2.2-BETA, 2.2.10, 2.2.12, + v2.2.3-Invoca-RPM-2.2.3-8, + 2.3-alpha (OSI Approved), v2.2.12-Invoca-RPM-2.2.12-3.RHEL4.1, v2.3.1-Invoca-RPM-2.3.1-2.7.fc5, (http://asg.web.cmu.edu/cyrus/) @@ -255,7 +257,8 @@ Success stories reported with the following 29 imap servers - Qualcomm Worldmail (NT) - Rockliffe Mailsite 5.3.11 - Samsung Contact IMAP server 8.5.0 - - Scalix v10.1, 10.0.1.3 + - Scalix v10.1, 10.0.1.3, 11.0.0.431 + - SmarterMail - SunONE Messaging server 5.2, 6.0 (SUN JES - Java Enterprise System) - Sun Java System Messaging Server 6.2-2.05 - Surgemail 3.6f5-5 @@ -353,7 +356,7 @@ Gilles LAMIRAL earn his living writing, installing, configuring and teaching free open and gratis softwares. Don't hesitate to pay him for that services. -$Id: imapsync,v 1.201 2007/01/03 23:49:10 gilles Exp $ +$Id: imapsync,v 1.204 2007/01/13 07:51:21 gilles Exp $ =cut @@ -410,7 +413,7 @@ my( use vars qw ($opt_G); # missing code for this will be option. -$rcs = ' $Id: imapsync,v 1.201 2007/01/03 23:49:10 gilles Exp $ '; +$rcs = ' $Id: imapsync,v 1.204 2007/01/13 07:51:21 gilles Exp $ '; $rcs =~ m/,v (\d+\.\d+)/; $VERSION = ($1) ? $1 : "UNKNOWN"; @@ -447,8 +450,8 @@ $error=0; my $banner = join("", '$RCSfile: imapsync,v $ ', - '$Revision: 1.201 $ ', - '$Date: 2007/01/03 23:49:10 $ ', + '$Revision: 1.204 $ ', + '$Date: 2007/01/13 07:51:21 $ ', "\n", "Mail::IMAPClient version used here is ", $VERSION_IMAPClient,"\n" @@ -642,7 +645,15 @@ sub login_imap { $imap->User($user); $imap->Authuser($authuser); $imap->Password($password); - $imap->login2() or die "Error login : [$host] with user [$user] : $@"; + unless ($imap->login2()) { + print "Error login : [$host] with user [$user] auth [$authmech]: $@\n"; + die if ($authmech eq 'LOGIN'); + print "Trying LOGIN Auth mechanism on [$host] with user [$user]\n"; + $imap->Authmechanism(""); + $imap->login2() or + die "Error login : [$host] with user [$user] auth [LOGIN] : $@"; + } + print "Success login on [$host] with user [$user] auth [$authmech]\n"; return($imap); }