This commit is contained in:
Nick Bebout 2011-03-12 02:44:20 +00:00
parent 471328efae
commit 00a0bc81fd
5 changed files with 29 additions and 17 deletions

View file

@ -1,5 +1,8 @@
#!/bin/cat #!/bin/cat
Vincent Deffontaines
Made me talk about --exclude 'fold1|fold2|f3'
Jim Rosenberg Jim Rosenberg
Had problems with dbmail. Had problems with dbmail.

View file

@ -1,17 +1,25 @@
RCS file: RCS/imapsync,v RCS file: RCS/imapsync,v
Working file: imapsync Working file: imapsync
head: 1.147 head: 1.149
branch: branch:
locks: strict locks: strict
gilles: 1.147 gilles: 1.149
access list: access list:
symbolic names: symbolic names:
keyword substitution: kv keyword substitution: kv
total revisions: 147; selected revisions: 147 total revisions: 149; selected revisions: 149
description: description:
---------------------------- ----------------------------
revision 1.147 locked by: gilles; revision 1.149 locked by: gilles;
date: 2006/02/14 00:44:44; author: gilles; state: Exp; lines: +9 -8
Documented --exclude 'fold1|fold2|f3'
----------------------------
revision 1.148
date: 2006/02/14 00:30:49; author: gilles; state: Exp; lines: +7 -7
More debug for dbmail pb.
----------------------------
revision 1.147
date: 2006/02/08 07:54:46; author: gilles; state: Exp; lines: +7 -9 date: 2006/02/08 07:54:46; author: gilles; state: Exp; lines: +7 -9
Just a little debug for Jim. Just a little debug for Jim.
---------------------------- ----------------------------

4
README
View file

@ -2,7 +2,7 @@ NAME
imapsync - IMAP synchronization, copy or migration tool. Synchronize imapsync - IMAP synchronization, copy or migration tool. Synchronize
mailboxes between two imap servers. Good at IMAP migration. mailboxes between two imap servers. Good at IMAP migration.
$Revision: 1.147 $ $Revision: 1.149 $
INSTALL INSTALL
imapsync works fine under any Unix OS. imapsync works fine under any Unix OS.
@ -263,5 +263,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.147 2006/02/08 07:54:46 gilles Exp gilles $ $Id: imapsync,v 1.149 2006/02/14 00:44:44 gilles Exp gilles $

View file

@ -1 +1 @@
1.147 1.149

View file

@ -6,7 +6,7 @@ imapsync - IMAP synchronization, copy or migration
tool. Synchronize mailboxes between two imap servers. Good tool. Synchronize mailboxes between two imap servers. Good
at IMAP migration. at IMAP migration.
$Revision: 1.147 $ $Revision: 1.149 $
=head1 INSTALL =head1 INSTALL
@ -308,7 +308,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.147 2006/02/08 07:54:46 gilles Exp gilles $ $Id: imapsync,v 1.149 2006/02/14 00:44:44 gilles Exp gilles $
=cut =cut
@ -355,7 +355,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.147 2006/02/08 07:54:46 gilles Exp gilles $ '; $rcs = ' $Id: imapsync,v 1.149 2006/02/14 00:44:44 gilles Exp gilles $ ';
$rcs =~ m/,v (\d+\.\d+)/; $rcs =~ m/,v (\d+\.\d+)/;
$VERSION = ($1) ? $1 : "UNKNOWN"; $VERSION = ($1) ? $1 : "UNKNOWN";
@ -392,8 +392,8 @@ $error=0;
my $banner = join("", my $banner = join("",
'$RCSfile: imapsync,v $ ', '$RCSfile: imapsync,v $ ',
'$Revision: 1.147 $ ', '$Revision: 1.149 $ ',
'$Date: 2006/02/08 07:54:46 $ ', '$Date: 2006/02/14 00:44:44 $ ',
"\n", "\n",
"Mail::IMAPClient version used here is ", "Mail::IMAPClient version used here is ",
$VERSION_IMAPClient,"\n" $VERSION_IMAPClient,"\n"
@ -822,12 +822,12 @@ FOLDER: foreach my $f_fold (@f_folders) {
$debug and print "LIST FROM : [@f_msgs]\n"; $debug and print "LIST FROM : ", scalar(@f_msgs), " messages [@f_msgs]\n";
# internal dates on "TO" are after the ones on "FROM" # internal dates on "TO" are after the ones on "FROM"
# normally... # normally...
my @t_msgs = select_msgs($to); my @t_msgs = select_msgs($to);
$debug and print "LIST TO : [@t_msgs]\n"; $debug and print "LIST TO : ", scalar(@t_msgs), " messages [@t_msgs]\n";
my %f_hash = (); my %f_hash = ();
my %t_hash = (); my %t_hash = ();
@ -1215,10 +1215,11 @@ Several options are mandatory.
--folder <string> : and this one, etc. --folder <string> : and this one, etc.
--include <regex> : only sync folders matching this regular expression --include <regex> : only sync folders matching this regular expression
(only effective if neither --folder nor --subscribed (only effective if neither --folder nor --subscribed
is specified) is specified).
--exclude <regex> : skip folders matching this regular expression --exclude <regex> : skips folders matching this regular expression
(only effective if neither --folder nor --subscribed (only effective if neither --folder nor --subscribed
is specified) is specified). Several folders to avoid:
--exclude 'fold1|fold2|f3' skips fold1, fold2 and f3.
--prefix1 <string> : remove prefix to all destination folders --prefix1 <string> : remove prefix to all destination folders
(usually INBOX. for cyrus imap servers) (usually INBOX. for cyrus imap servers)
use --prefix1 if your source imap server does not use --prefix1 if your source imap server does not