mirror of
https://github.com/imapsync/imapsync.git
synced 2025-07-25 03:28:16 +02:00
1.204
This commit is contained in:
parent
ab2854d584
commit
a67f44996e
6 changed files with 55 additions and 17 deletions
7
CREDITS
7
CREDITS
|
@ -7,6 +7,13 @@ http://www.amazon.com/gp/registry/wishlist/1C9UNDIH3P7R7/
|
||||||
|
|
||||||
I thank very much all of these people.
|
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
|
Florin Andrei
|
||||||
Suggested to remove the bad behavior with INBOX
|
Suggested to remove the bad behavior with INBOX
|
||||||
and --prefix2 (prefix2 was ignored)
|
and --prefix2 (prefix2 was ignored)
|
||||||
|
|
16
ChangeLog
16
ChangeLog
|
@ -1,15 +1,27 @@
|
||||||
|
|
||||||
RCS file: RCS/imapsync,v
|
RCS file: RCS/imapsync,v
|
||||||
Working file: imapsync
|
Working file: imapsync
|
||||||
head: 1.201
|
head: 1.204
|
||||||
branch:
|
branch:
|
||||||
locks: strict
|
locks: strict
|
||||||
access list:
|
access list:
|
||||||
symbolic names:
|
symbolic names:
|
||||||
keyword substitution: kv
|
keyword substitution: kv
|
||||||
total revisions: 201; selected revisions: 201
|
total revisions: 204; selected revisions: 204
|
||||||
description:
|
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
|
revision 1.201
|
||||||
date: 2007/01/03 23:49:10; author: gilles; state: Exp; lines: +30 -6
|
date: 2007/01/03 23:49:10; author: gilles; state: Exp; lines: +30 -6
|
||||||
Use login2() instead of login() (literal form is not always
|
Use login2() instead of login() (literal form is not always
|
||||||
|
|
5
FAQ
5
FAQ
|
@ -3,6 +3,11 @@
|
||||||
| FAQ for imapsync |
|
| 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
|
Q. We have found that the sent time and date have been changed to the
|
||||||
time at which the file was synchronised.
|
time at which the file was synchronised.
|
||||||
|
|
13
README
13
README
|
@ -3,7 +3,7 @@ NAME
|
||||||
Synchronise mailboxes between two imap servers. Good at IMAP migration.
|
Synchronise mailboxes between two imap servers. Good at IMAP migration.
|
||||||
More than 25 different IMAP server softwares supported with success.
|
More than 25 different IMAP server softwares supported with success.
|
||||||
|
|
||||||
$Revision: 1.201 $
|
$Revision: 1.204 $
|
||||||
|
|
||||||
INSTALL
|
INSTALL
|
||||||
imapsync works fine under any Unix OS.
|
imapsync works fine under any Unix OS.
|
||||||
|
@ -192,7 +192,7 @@ IMAP SERVERS
|
||||||
- dkimap4 2.39
|
- dkimap4 2.39
|
||||||
- Imail 7.04 (maybe).
|
- 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) :
|
names are in alphabetic order) :
|
||||||
|
|
||||||
- BincImap 1.2.3 (GPL) (http://www.bincimap.org/)
|
- BincImap 1.2.3 (GPL) (http://www.bincimap.org/)
|
||||||
|
@ -201,7 +201,9 @@ IMAP SERVERS
|
||||||
(http://www.courier-mta.org/)
|
(http://www.courier-mta.org/)
|
||||||
- Critical Path (7.0.020)
|
- Critical Path (7.0.020)
|
||||||
- Cyrus IMAP 1.5, 1.6, 2.1, 2.1.15, 2.1.16, 2.1.18
|
- 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.2.12-Invoca-RPM-2.2.12-3.RHEL4.1,
|
||||||
v2.3.1-Invoca-RPM-2.3.1-2.7.fc5,
|
v2.3.1-Invoca-RPM-2.3.1-2.7.fc5,
|
||||||
(http://asg.web.cmu.edu/cyrus/)
|
(http://asg.web.cmu.edu/cyrus/)
|
||||||
|
@ -224,7 +226,8 @@ IMAP SERVERS
|
||||||
- Qualcomm Worldmail (NT)
|
- Qualcomm Worldmail (NT)
|
||||||
- Rockliffe Mailsite 5.3.11
|
- Rockliffe Mailsite 5.3.11
|
||||||
- Samsung Contact IMAP server 8.5.0
|
- 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)
|
- SunONE Messaging server 5.2, 6.0 (SUN JES - Java Enterprise System)
|
||||||
- Sun Java System Messaging Server 6.2-2.05
|
- Sun Java System Messaging Server 6.2-2.05
|
||||||
- Surgemail 3.6f5-5
|
- Surgemail 3.6f5-5
|
||||||
|
@ -301,5 +304,5 @@ AUTHOR
|
||||||
teaching free open and gratis softwares. Don't hesitate to pay him for
|
teaching free open and gratis softwares. Don't hesitate to pay him for
|
||||||
that services.
|
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 $
|
||||||
|
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
1.201
|
1.204
|
||||||
|
|
29
imapsync
29
imapsync
|
@ -7,7 +7,7 @@ tool. Synchronise mailboxes between two imap servers. Good
|
||||||
at IMAP migration. More than 25 different IMAP server softwares
|
at IMAP migration. More than 25 different IMAP server softwares
|
||||||
supported with success.
|
supported with success.
|
||||||
|
|
||||||
$Revision: 1.201 $
|
$Revision: 1.204 $
|
||||||
|
|
||||||
=head1 INSTALL
|
=head1 INSTALL
|
||||||
|
|
||||||
|
@ -223,7 +223,7 @@ Failure stories reported with the following 4 imap servers :
|
||||||
- dkimap4 2.39
|
- dkimap4 2.39
|
||||||
- Imail 7.04 (maybe).
|
- 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) :
|
(softwares names are in alphabetic order) :
|
||||||
|
|
||||||
- BincImap 1.2.3 (GPL) (http://www.bincimap.org/)
|
- 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/)
|
(http://www.courier-mta.org/)
|
||||||
- Critical Path (7.0.020)
|
- Critical Path (7.0.020)
|
||||||
- Cyrus IMAP 1.5, 1.6, 2.1, 2.1.15, 2.1.16, 2.1.18
|
- 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.2.12-Invoca-RPM-2.2.12-3.RHEL4.1,
|
||||||
v2.3.1-Invoca-RPM-2.3.1-2.7.fc5,
|
v2.3.1-Invoca-RPM-2.3.1-2.7.fc5,
|
||||||
(http://asg.web.cmu.edu/cyrus/)
|
(http://asg.web.cmu.edu/cyrus/)
|
||||||
|
@ -255,7 +257,8 @@ Success stories reported with the following 29 imap servers
|
||||||
- Qualcomm Worldmail (NT)
|
- Qualcomm Worldmail (NT)
|
||||||
- Rockliffe Mailsite 5.3.11
|
- Rockliffe Mailsite 5.3.11
|
||||||
- Samsung Contact IMAP server 8.5.0
|
- 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)
|
- SunONE Messaging server 5.2, 6.0 (SUN JES - Java Enterprise System)
|
||||||
- Sun Java System Messaging Server 6.2-2.05
|
- Sun Java System Messaging Server 6.2-2.05
|
||||||
- Surgemail 3.6f5-5
|
- Surgemail 3.6f5-5
|
||||||
|
@ -353,7 +356,7 @@ Gilles LAMIRAL earn his living writing, installing,
|
||||||
configuring and teaching free open and gratis
|
configuring and teaching free open and gratis
|
||||||
softwares. Don't hesitate to pay him for that services.
|
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
|
=cut
|
||||||
|
|
||||||
|
@ -410,7 +413,7 @@ my(
|
||||||
use vars qw ($opt_G); # missing code for this will be option.
|
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+)/;
|
$rcs =~ m/,v (\d+\.\d+)/;
|
||||||
$VERSION = ($1) ? $1 : "UNKNOWN";
|
$VERSION = ($1) ? $1 : "UNKNOWN";
|
||||||
|
|
||||||
|
@ -447,8 +450,8 @@ $error=0;
|
||||||
|
|
||||||
my $banner = join("",
|
my $banner = join("",
|
||||||
'$RCSfile: imapsync,v $ ',
|
'$RCSfile: imapsync,v $ ',
|
||||||
'$Revision: 1.201 $ ',
|
'$Revision: 1.204 $ ',
|
||||||
'$Date: 2007/01/03 23:49:10 $ ',
|
'$Date: 2007/01/13 07:51:21 $ ',
|
||||||
"\n",
|
"\n",
|
||||||
"Mail::IMAPClient version used here is ",
|
"Mail::IMAPClient version used here is ",
|
||||||
$VERSION_IMAPClient,"\n"
|
$VERSION_IMAPClient,"\n"
|
||||||
|
@ -642,7 +645,15 @@ sub login_imap {
|
||||||
$imap->User($user);
|
$imap->User($user);
|
||||||
$imap->Authuser($authuser);
|
$imap->Authuser($authuser);
|
||||||
$imap->Password($password);
|
$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);
|
return($imap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue