This commit is contained in:
Nick Bebout 2011-03-12 02:43:46 +00:00
parent f90d5bb46a
commit f70eeba700
6 changed files with 50 additions and 28 deletions

View file

@ -1,15 +1,23 @@
RCS file: RCS/imapsync,v RCS file: RCS/imapsync,v
Working file: imapsync Working file: imapsync
head: 1.25 head: 1.27
branch: branch:
locks: strict locks: strict
access list: access list:
symbolic names: symbolic names:
keyword substitution: kv keyword substitution: kv
total revisions: 25; selected revisions: 25 total revisions: 27; selected revisions: 27
description: description:
---------------------------- ----------------------------
revision 1.27
date: 2003/08/23 14:40:57; author: gilles; state: Exp; lines: +4 -10
Removed unused code
----------------------------
revision 1.26
date: 2003/08/23 14:36:58; author: gilles; state: Exp; lines: +18 -11
Updated doc with imap servers, freshmeat url
----------------------------
revision 1.25 revision 1.25
date: 2003/08/23 01:44:33; author: gilles; state: Exp; lines: +18 -12 date: 2003/08/23 01:44:33; author: gilles; state: Exp; lines: +18 -12
Fixed pb with no UIDPLUS and flags Fixed pb with no UIDPLUS and flags

15
README
View file

@ -1,7 +1,7 @@
NAME NAME
imapsync - synchronize mailboxes between two imap servers. imapsync - synchronize mailboxes between two imap servers.
$Revision: 1.25 $ $Revision: 1.27 $
INSTALL INSTALL
Get imapsync at http://www.linux-france.org/prj/imapsync/dist/ Get imapsync at http://www.linux-france.org/prj/imapsync/dist/
@ -93,7 +93,12 @@ LICENSE
the web site http://www.gnu.org/licenses/licenses.html the web site http://www.gnu.org/licenses/licenses.html
BUGS BUGS
No known bug. Report any bugs to the author: lamiral@linux-france.org No known serious bug.
Flags : with some IMAP servers the flags are not very well copied the
first time. Run imapsync twice if you want the flags set correctly.
Report any bugs to the author: lamiral@linux-france.org
IMAP SERVERS IMAP SERVERS
Success stories reported : Success stories reported :
@ -102,11 +107,15 @@ IMAP SERVERS
- Cyrus IMAP 1.5, 1.6, 2.1 - Cyrus IMAP 1.5, 1.6, 2.1
- Netscape Mail Server 3.6 (Wintel) - Netscape Mail Server 3.6 (Wintel)
- CommunicatePro server (Redhat 8.0) - CommunicatePro server (Redhat 8.0)
- SunONE Messaging server 5.2
- iPlanet Messaging server 4.15
Please report to the author any success or bad story with imapsync and Please report to the author any success or bad story with imapsync and
don't forget to mention the IMAP server software names and version on don't forget to mention the IMAP server software names and version on
both sides. This will help future users. both sides. This will help future users.
Rate imapsync : http://freshmeat.net/projects/imapsync/
SIMILAR SOFTWARES SIMILAR SOFTWARES
offlineimap : http://gopher.quux.org:70/devel/offlineimap/ offlineimap : http://gopher.quux.org:70/devel/offlineimap/
mailsync : http://mailsync.sourceforge.net/ mailsync : http://mailsync.sourceforge.net/
@ -115,5 +124,5 @@ SIMILAR SOFTWARES
Feedback (good or bad) will be always welcome. Feedback (good or bad) will be always welcome.
$Id: imapsync,v 1.25 2003/08/23 01:44:33 gilles Exp $ $Id: imapsync,v 1.27 2003/08/23 14:40:57 gilles Exp $

12
TODO
View file

@ -1,11 +1,13 @@
Add SASL support MD5 : DIGEST-MD5 and CRAM-MD5 Add SASL support MD5 : DIGEST-MD5 and CRAM-MD5
see authenticate in IMAPClient.pm see authenticate in IMAPClient.pm
Test the new Mail::IMAPClient (2.1.4 -> 2.2.8 or sup)
Tested on Update the list of tested IMAP servers (successes and failures).
> The source imap server runs Cyrus imapd 1.6.22,
> the destination one Cyrus imapd 2.1.12.
by Per Steinar Iversen <PerSteinar.Iversen@adm.hio.no>
Add a list of well tested imap servers. Update documentation about setting flags.
Make setting flags works the FIRST time.
-> Use append_string instead of append
Add a CREDITS file.

View file

@ -1 +1 @@
1.25 1.27

View file

@ -1,3 +1,5 @@
http://freshmeat.net/projects/imapsync/
imapsync is a tool for facilitating incremental recursive IMAP imapsync is a tool for facilitating incremental recursive IMAP
transfers from one mailbox to another. It is useful for mailbox transfers from one mailbox to another. It is useful for mailbox
migration, and reduces the amount of data transferred by only copying migration, and reduces the amount of data transferred by only copying

View file

@ -4,7 +4,7 @@
imapsync - synchronize mailboxes between two imap servers. imapsync - synchronize mailboxes between two imap servers.
$Revision: 1.25 $ $Revision: 1.27 $
=head1 INSTALL =head1 INSTALL
@ -67,9 +67,8 @@ I wrote imapsync because an enterprise (basystemes) paid me to install
a new imap server without loosing huge old mailboxes located on a far a new imap server without loosing huge old mailboxes located on a far
away remote imap server accessible by a low bandwith link. The tool away remote imap server accessible by a low bandwith link. The tool
imapcp (written in python) could not help me because I had to verify imapcp (written in python) could not help me because I had to verify
every mailbox was well every mailbox was well transfered and delete it after a good
transfered and delete it after a good transfert. imapsync started its life transfert. imapsync started its life being a copy_folder.pl patch.
being a copy_folder.pl patch.
The tool copy_folder.pl comes from the Mail-IMAPClient-2.1.3 perl The tool copy_folder.pl comes from the Mail-IMAPClient-2.1.3 perl
module tarball source (in the examples/ directory of the tarball). module tarball source (in the examples/ directory of the tarball).
@ -112,7 +111,11 @@ http://www.gnu.org/licenses/licenses.html
=head1 BUGS =head1 BUGS
No known bug. No known serious bug.
Flags : with some IMAP servers the flags are not very well copied the
first time. Run imapsync twice if you want the flags set correctly.
Report any bugs to the author: lamiral@linux-france.org Report any bugs to the author: lamiral@linux-france.org
=head1 IMAP SERVERS =head1 IMAP SERVERS
@ -123,11 +126,15 @@ Success stories reported :
- Cyrus IMAP 1.5, 1.6, 2.1 - Cyrus IMAP 1.5, 1.6, 2.1
- Netscape Mail Server 3.6 (Wintel) - Netscape Mail Server 3.6 (Wintel)
- CommunicatePro server (Redhat 8.0) - CommunicatePro server (Redhat 8.0)
- SunONE Messaging server 5.2
- iPlanet Messaging server 4.15
Please report to the author any success or bad story with imapsync and Please report to the author any success or bad story with imapsync and
don't forget to mention the IMAP server software names and version on don't forget to mention the IMAP server software names and version on
both sides. This will help future users. both sides. This will help future users.
Rate imapsync : http://freshmeat.net/projects/imapsync/
=head1 SIMILAR SOFTWARES =head1 SIMILAR SOFTWARES
offlineimap : http://gopher.quux.org:70/devel/offlineimap/ offlineimap : http://gopher.quux.org:70/devel/offlineimap/
@ -137,7 +144,7 @@ both sides. This will help future users.
Feedback (good or bad) will be always welcome. Feedback (good or bad) will be always welcome.
$Id: imapsync,v 1.25 2003/08/23 01:44:33 gilles Exp $ $Id: imapsync,v 1.27 2003/08/23 14:40:57 gilles Exp $
=cut =cut
@ -160,12 +167,12 @@ 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.25 2003/08/23 01:44:33 gilles Exp $ '; $rcs = ' $Id: imapsync,v 1.27 2003/08/23 14:40:57 gilles Exp $ ';
$rcs =~ m/,v (\d+\.\d+)/; $rcs =~ m/,v (\d+\.\d+)/;
$VERSION = ($1) ? $1 : "UNKNOWN"; $VERSION = ($1) ? $1 : "UNKNOWN";
$error=0; $error=0;
my $banner = '$RCSfile: imapsync,v $ ' . '$Revision: 1.25 $ ' . '$Date: 2003/08/23 01:44:33 $ ' . "\n"; my $banner = '$RCSfile: imapsync,v $ ' . '$Revision: 1.27 $ ' . '$Date: 2003/08/23 14:40:57 $ ' . "\n";
get_options(); get_options();
@ -303,12 +310,6 @@ FOLDER: foreach my $f_fold (@f_folders) {
my %f_hash = (); my %f_hash = ();
my %t_hash = (); my %t_hash = ();
sub header_parse {
# @msgs_all;
# %hash;
}
$debug and print "From Parse\n"; $debug and print "From Parse\n";
foreach my $m (@f_msgs) { foreach my $m (@f_msgs) {
$debug and print "-" x 50, "\nMSG $m\n"; $debug and print "-" x 50, "\nMSG $m\n";