mirror of
https://github.com/imapsync/imapsync.git
synced 2025-06-06 20:55:29 +02:00
1.143
This commit is contained in:
parent
05cda6e79b
commit
028e94e1f1
5 changed files with 27 additions and 18 deletions
3
CREDITS
3
CREDITS
|
@ -1,5 +1,8 @@
|
|||
#!/bin/cat
|
||||
|
||||
|
||||
Michael Menge
|
||||
Patch made --regextrans2 a multiple option
|
||||
|
||||
Arnaud Launay
|
||||
Bug about --expunge12 (no option code)
|
||||
|
|
11
ChangeLog
11
ChangeLog
|
@ -1,17 +1,20 @@
|
|||
|
||||
RCS file: RCS/imapsync,v
|
||||
Working file: imapsync
|
||||
head: 1.142
|
||||
head: 1.143
|
||||
branch:
|
||||
locks: strict
|
||||
gilles: 1.142
|
||||
access list:
|
||||
symbolic names:
|
||||
keyword substitution: kv
|
||||
total revisions: 142; selected revisions: 142
|
||||
total revisions: 143; selected revisions: 143
|
||||
description:
|
||||
----------------------------
|
||||
revision 1.142 locked by: gilles;
|
||||
revision 1.143
|
||||
date: 2005/11/27 20:36:12; author: gilles; state: Exp; lines: +12 -10
|
||||
made --regextrans2 a multiple option
|
||||
----------------------------
|
||||
revision 1.142
|
||||
date: 2005/11/16 01:08:49; author: gilles; state: Exp; lines: +7 -5
|
||||
Added expunge1 and expunge2 getoption code
|
||||
----------------------------
|
||||
|
|
7
README
7
README
|
@ -2,7 +2,7 @@ NAME
|
|||
imapsync - IMAP synchronization, copy or migration tool. Synchronize
|
||||
mailboxes between two imap servers. Good at IMAP migration.
|
||||
|
||||
$Revision: 1.142 $
|
||||
$Revision: 1.143 $
|
||||
|
||||
INSTALL
|
||||
imapsync works fine under any Unix OS.
|
||||
|
@ -35,7 +35,8 @@ SYNOPSIS
|
|||
[--noauthmd5]
|
||||
[--folder <string> --folder <string> ...]
|
||||
[--include <regex>] [--exclude <regex>]
|
||||
[--prefix2 <string>] [--regextrans2 <regex>]
|
||||
[--prefix2 <string>]
|
||||
[--regextrans2 <regex> --regextrans2 <regex> ...]
|
||||
[--sep1 <char>]
|
||||
[--sep2 <char>]
|
||||
[--justfolders] [--justconnect]
|
||||
|
@ -261,5 +262,5 @@ AUTHOR
|
|||
teaching free open and gratis softwares. Don't hesitate to pay him for
|
||||
that services.
|
||||
|
||||
$Id: imapsync,v 1.142 2005/11/16 01:08:49 gilles Exp gilles $
|
||||
$Id: imapsync,v 1.143 2005/11/27 20:36:12 gilles Exp $
|
||||
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.142
|
||||
1.143
|
||||
|
|
22
imapsync
22
imapsync
|
@ -6,7 +6,7 @@ imapsync - IMAP synchronization, copy or migration
|
|||
tool. Synchronize mailboxes between two imap servers. Good
|
||||
at IMAP migration.
|
||||
|
||||
$Revision: 1.142 $
|
||||
$Revision: 1.143 $
|
||||
|
||||
=head1 INSTALL
|
||||
|
||||
|
@ -41,7 +41,8 @@ $Revision: 1.142 $
|
|||
[--noauthmd5]
|
||||
[--folder <string> --folder <string> ...]
|
||||
[--include <regex>] [--exclude <regex>]
|
||||
[--prefix2 <string>] [--regextrans2 <regex>]
|
||||
[--prefix2 <string>]
|
||||
[--regextrans2 <regex> --regextrans2 <regex> ...]
|
||||
[--sep1 <char>]
|
||||
[--sep2 <char>]
|
||||
[--justfolders] [--justconnect]
|
||||
|
@ -305,7 +306,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.142 2005/11/16 01:08:49 gilles Exp gilles $
|
||||
$Id: imapsync,v 1.143 2005/11/27 20:36:12 gilles Exp $
|
||||
|
||||
=cut
|
||||
|
||||
|
@ -325,7 +326,7 @@ my(
|
|||
$rcs, $debug, $debugimap, $error,
|
||||
$host1, $host2, $port1, $port2,
|
||||
$user1, $user2, $password1, $password2, $passfile1, $passfile2,
|
||||
@folder, $include, $exclude, $prefix2, $regextrans2, @regexmess,
|
||||
@folder, $include, $exclude, $prefix2, @regextrans2, @regexmess,
|
||||
$sep1, $sep2,
|
||||
$syncinternaldates, $syncacls,
|
||||
$fastio1, $fastio2,
|
||||
|
@ -350,7 +351,7 @@ my(
|
|||
use vars qw ($opt_G); # missing code for this will be option.
|
||||
|
||||
|
||||
$rcs = ' $Id: imapsync,v 1.142 2005/11/16 01:08:49 gilles Exp gilles $ ';
|
||||
$rcs = ' $Id: imapsync,v 1.143 2005/11/27 20:36:12 gilles Exp $ ';
|
||||
$rcs =~ m/,v (\d+\.\d+)/;
|
||||
$VERSION = ($1) ? $1 : "UNKNOWN";
|
||||
|
||||
|
@ -387,8 +388,8 @@ $error=0;
|
|||
|
||||
my $banner = join("",
|
||||
'$RCSfile: imapsync,v $ ',
|
||||
'$Revision: 1.142 $ ',
|
||||
'$Date: 2005/11/16 01:08:49 $ ',
|
||||
'$Revision: 1.143 $ ',
|
||||
'$Date: 2005/11/27 20:36:12 $ ',
|
||||
"\n",
|
||||
"Mail::IMAPClient version used here is ",
|
||||
$VERSION_IMAPClient,"\n"
|
||||
|
@ -709,8 +710,8 @@ FOLDER: foreach my $f_fold (@f_folders) {
|
|||
# Adding the prefix supplied by the --prefix2 option
|
||||
$t_fold = $prefix2 . $t_fold if ($prefix2);
|
||||
|
||||
# Transforming the folder name by the --regextrans2 option
|
||||
if ($regextrans2) {
|
||||
# Transforming the folder name by the --regextrans2 option(s)
|
||||
foreach my $regextrans2 (@regextrans2) {
|
||||
$debug and print "eval \$t_fold =~ $regextrans2\n";
|
||||
eval("\$t_fold =~ $regextrans2");
|
||||
}
|
||||
|
@ -1018,7 +1019,7 @@ sub get_options
|
|||
"include=s" => \$include,
|
||||
"exclude=s" => \$exclude,
|
||||
"prefix2=s" => \$prefix2,
|
||||
"regextrans2=s" => \$regextrans2,
|
||||
"regextrans2=s" => \@regextrans2,
|
||||
"regexmess=s" => \@regexmess,
|
||||
"delete!" => \$delete,
|
||||
"syncinternaldates!" => \$syncinternaldates,
|
||||
|
@ -1151,6 +1152,7 @@ Several options are mandatory.
|
|||
--prefix2 <string> : add prefix to all destination folders
|
||||
(usually INBOX. for cyrus imap servers)
|
||||
--regextrans2 <regex> : Apply the whole regex to each destination folders.
|
||||
--regextrans2 <regex> : and this one. etc.
|
||||
--regexmess <regex> : Apply the whole regex to each message before transfer.
|
||||
Exemple : 's/\\000/ /g' # to replace null by space.
|
||||
--regexmess <regex> : and this one.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue