This commit is contained in:
Nick Bebout 2011-03-12 02:40:59 +00:00
parent c828f17d2f
commit 7876dbe7a4
5 changed files with 56 additions and 23 deletions

View file

@ -1,17 +1,21 @@
RCS file: RCS/imapsync,v RCS file: RCS/imapsync,v
Working file: imapsync Working file: imapsync
head: 1.6 head: 1.7
branch: branch:
locks: strict locks: strict
gilles: 1.6 gilles: 1.7
access list: access list:
symbolic names: symbolic names:
keyword substitution: kv keyword substitution: kv
total revisions: 6; selected revisions: 6 total revisions: 7; selected revisions: 7
description: description:
---------------------------- ----------------------------
revision 1.6 locked by: gilles; revision 1.7 locked by: gilles;
date: 2003/03/15 03:40:54; author: gilles; state: Exp; lines: +19 -9
Added documentation.
----------------------------
revision 1.6
date: 2003/03/14 02:17:24; author: gilles; state: Exp; lines: +5 -3 date: 2003/03/14 02:17:24; author: gilles; state: Exp; lines: +5 -3
Added positive exit if errors occurred. Added positive exit if errors occurred.
---------------------------- ----------------------------

12
INSTALL
View file

@ -1,4 +1,4 @@
# $Id: INSTALL,v 1.1 2003/03/12 23:14:27 gilles Exp gilles $ # $Id: INSTALL,v 1.2 2003/03/15 03:41:31 gilles Exp gilles $
# #
# INSTALL file for ftpsync # INSTALL file for ftpsync
@ -8,6 +8,16 @@ GETTING
http://www.linux-france.org/prj/imapsync/dist/ http://www.linux-france.org/prj/imapsync/dist/
PREREQUISITES
-------------
You need :
- Perl
try : perl -v
- Mail::IMAPClient module
try : perl -mMail::IMAPClient -e ''
TESTING TESTING
------- -------

25
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.6 $ $Revision: 1.7 $
INSTALL INSTALL
Get imapsync at http://www.linux-france.org/prj/imapsync/dist/ Get imapsync at http://www.linux-france.org/prj/imapsync/dist/
@ -10,7 +10,10 @@ INSTALL
freshmeat record: http://freshmeat.net/projects/imapsync/ freshmeat record: http://freshmeat.net/projects/imapsync/
SYNOPSIS SYNOPSIS
imapsync [options] SOURCE DEST imapsync [options]
imapsync --help
imapsync
imapsync [--host1 server1] [--port1 <num>] imapsync [--host1 server1] [--port1 <num>]
[--user1 <string>] [--passfile1 <string>] [--user1 <string>] [--passfile1 <string>]
@ -21,9 +24,6 @@ SYNOPSIS
[--dry] [--dry]
[--debug] [--debugimap] [--debug] [--debugimap]
[--version] [--help] [--version] [--help]
imapsync --help
imapsync
DESCRIPTION DESCRIPTION
The command imapsync is a tool allowing incremental and recursive imap The command imapsync is a tool allowing incremental and recursive imap
@ -35,7 +35,16 @@ DESCRIPTION
imapsync is the adequate tool because it reduces the amount of data imapsync is the adequate tool because it reduces the amount of data
transfered by not transfering a given message if it is already on both transfered by not transfering a given message if it is already on both
sides. All flags are preserved, unread will stay unread, read will stay sides. All flags are preserved, unread will stay unread, read will stay
read, deleted will stay deleted. read, deleted will stay deleted. You can stop the transfert at any time
and restart it later, imapsync is adapted to a bad connection.
You can decide to delete the messages from the source mailbox after a
successful transfert (it is a good feature when migrating). In that
case, use the --delete option, and run imapsync again with the --expunge
option.
You can also just synchronize a mailbox A from another mailbox B in case
you just want to keep a "live" copy of B in A.
OPTIONS OPTIONS
Invoke: imapsync --help Invoke: imapsync --help
@ -48,7 +57,7 @@ HISTORY
mailbox was well transfered and delete it after a good transfert. mailbox was well transfered and delete it after a good transfert.
imapsync started its life being a copy_folder.pl patch. The tool imapsync started its life being a copy_folder.pl patch. The tool
copy_folder.pl comes from the Mail-IMAPClient-2.1.3 perl module tarball copy_folder.pl comes from the Mail-IMAPClient-2.1.3 perl module tarball
source (in the examples/ directory). source (in the examples/ directory of the tarball).
EXAMPLES EXAMPLES
While working on imapsync parameters please run imapsync in dry mode (no While working on imapsync parameters please run imapsync in dry mode (no
@ -89,5 +98,5 @@ BUGS
SIMILAR SOFTWARES SIMILAR SOFTWARES
None known. Feedback will be welcome. None known. Feedback will be welcome.
$Id: imapsync,v 1.6 2003/03/14 02:17:24 gilles Exp gilles $ $Id: imapsync,v 1.7 2003/03/15 03:40:54 gilles Exp gilles $

View file

@ -1 +1 @@
1.6 1.7

View file

@ -4,7 +4,7 @@
imapsync - synchronize mailboxes between two imap servers. imapsync - synchronize mailboxes between two imap servers.
$Revision: 1.6 $ $Revision: 1.7 $
=head1 INSTALL =head1 INSTALL
@ -15,7 +15,10 @@ $Revision: 1.6 $
=head1 SYNOPSIS =head1 SYNOPSIS
imapsync [options] SOURCE DEST imapsync [options]
imapsync --help
imapsync
imapsync [--host1 server1] [--port1 <num>] imapsync [--host1 server1] [--port1 <num>]
[--user1 <string>] [--passfile1 <string>] [--user1 <string>] [--passfile1 <string>]
@ -26,9 +29,6 @@ $Revision: 1.6 $
[--dry] [--dry]
[--debug] [--debugimap] [--debug] [--debugimap]
[--version] [--help] [--version] [--help]
imapsync --help
imapsync
=cut =cut
# comment # comment
@ -45,7 +45,17 @@ another. This is called migration.
imapsync is the adequate tool because it reduces the amount of data imapsync is the adequate tool because it reduces the amount of data
transfered by not transfering a given message if it is already on transfered by not transfering a given message if it is already on
both sides. All flags are preserved, unread will stay unread, read both sides. All flags are preserved, unread will stay unread, read
will stay read, deleted will stay deleted. will stay read, deleted will stay deleted. You can stop the
transfert at any time and restart it later, imapsync is adapted
to a bad connection.
You can decide to delete the messages from the source mailbox
after a successful transfert (it is a good feature when migrating).
In that case, use the --delete option, and run imapsync again
with the --expunge option.
You can also just synchronize a mailbox A from another mailbox B
in case you just want to keep a "live" copy of B in A.
=head1 OPTIONS =head1 OPTIONS
@ -61,7 +71,7 @@ every mailbox was well
transfered and delete it after a good transfert. imapsync started its life transfered and delete it after a good 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). module tarball source (in the examples/ directory of the tarball).
=head1 EXAMPLES =head1 EXAMPLES
@ -110,7 +120,7 @@ Report any bugs to the author: lamiral@linux-france.org
None known. None known.
Feedback will be welcome. Feedback will be welcome.
$Id: imapsync,v 1.6 2003/03/14 02:17:24 gilles Exp gilles $ $Id: imapsync,v 1.7 2003/03/15 03:40:54 gilles Exp gilles $
=cut =cut
@ -135,7 +145,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.6 2003/03/14 02:17:24 gilles Exp gilles $ '; $rcs = ' $Id: imapsync,v 1.7 2003/03/15 03:40:54 gilles Exp gilles $ ';
$rcs =~ m/,v (\d+\.\d+)/; $rcs =~ m/,v (\d+\.\d+)/;
$VERSION = ($1) ? $1 : "UNKNOWN"; $VERSION = ($1) ? $1 : "UNKNOWN";
$error=0; $error=0;