./mail/imapsync, Incremental recursive IMAP transfer tool

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.564nb1, Package name: imapsync-1.564nb1, Maintainer: abs

imapsync is a tool for facilitating incremental recursive IMAP
transfers from one mailbox to another. It is useful for mailbox
migration, and reduces the amount of data transferred by only
copying messages that are not present on both servers. Read, unread,
and deleted flags are preserved, and the process can be stopped
and resumed. The original messages can optionally be deleted after
a successful transfer.


Required to run:
[lang/perl5] [security/p5-IO-Socket-SSL] [security/p5-Digest-HMAC] [security/p5-Digest-MD5] [mail/p5-Mail-IMAPClient] [devel/p5-Date-Manip] [devel/p5-Term-ReadKey] [devel/p5-Data-Uniqid]

Master sites:

SHA1: b2246e1f3bd24d7e896a135daf821f34ea2792c8
RMD160: 3df26ec1a058fbbf859fff22dfe672761886fcfb
Filesize: 776.836 KB

Version history: (Expand)


CVS history: (Expand)


   2014-01-27 19:41:15 by Thomas Klausner | Files touched by this commit (72)
Log message:
Do not set FETCH_USING, should not be set in a package Makefile.
   2013-12-09 15:17:56 by OBATA Akio | Files touched by this commit (238) | Package updated
Log message:
Fix/Update DEPENDS paterns for perl CORE modules, with some trivial fixes.

Bump PKGREVISION for runtime dependency pattern changed packages.
   2013-08-26 12:06:15 by David Brownlee | Files touched by this commit (2) | Package updated
Log message:
Updated mail/imapsync to 1.564

Changes since 1.286

----------------------------
revision 1.564	locked by: gilles;
date: 2013/08/18 19:28:47;  author: gilles;  state: Exp;  lines: +114 -22
Adapted behavior for allowing --maxdate --mindate with --noabletosearch. Use \ 
internat date instead of Date: header.
----------------------------
revision 1.563
date: 2013/08/16 00:59:30;  author: gilles;  state: Exp;  lines: +8 -7
Added QQMail success.
----------------------------
revision 1.562
date: 2013/08/16 00:41:48;  author: gilles;  state: Exp;  lines: +38 -16
Speed fix. Does not resync the flags when flags on host2 do not respect RFC. \ 
\Seen -> \SEEN. imapsync detects this as same flag.
Atmail 6.x [host1] success.
Fix for QQMail IMAP4Server. With --noabletosearch the previous fetch with \ 
1:999999 is replaced by an uidnext request.
----------------------------
revision 1.561
date: 2013/08/09 23:49:23;  author: gilles;  state: Exp;  lines: +15 -8
Added --timeout in the --help output.
Default timeout is 120 seconds now (was nothing by imapsync, 600 with underlying \ 
modules).
----------------------------
revision 1.560
date: 2013/08/09 23:06:04;  author: gilles;  state: Exp;  lines: +7 -7
Added --addheader suggestion for messages with no header found.
----------------------------
revision 1.559
date: 2013/08/06 11:33:53;  author: gilles;  state: Exp;  lines: +7 -7
Apply same treatment to --delete2duplicates as --delete2. If --uidexpunge2 can \ 
be done, do it, else do --expunge2 (unless --nouidexpunge2 or --noexpunge2).
----------------------------
revision 1.558
date: 2013/08/03 01:13:37;  author: gilles;  state: Exp;  lines: +18 -16
Bugfix. SSL_version was not well treated.
----------------------------
revision 1.557
date: 2013/08/01 19:28:09;  author: gilles;  state: Exp;  lines: +7 -7
Bugfix. max_line_length('a') was wrong.
----------------------------
revision 1.556
date: 2013/08/01 00:10:03;  author: gilles;  state: Exp;  lines: +42 -28
Added --ssl1_SSL_version ssl2_SSL_version option to change default SSL_version.
For example --ssl2_SSL_version SSLv3 fix connection to cmail.cmich.edu on Windows.
Fixed a warning about regex with \E on Perl >= 5.16
----------------------------
revision 1.555
date: 2013/07/23 11:41:10;  author: gilles;  state: Exp;  lines: +7 -6
Fix warning for extract_header()
----------------------------
revision 1.554
date: 2013/07/22 01:23:12;  author: gilles;  state: Exp;  lines: +7 -7
typo - when error printed.
----------------------------
revision 1.553
date: 2013/07/22 01:18:30;  author: gilles;  state: Exp;  lines: +9 -7
Bug fix. Header lines can contain \r\n.
----------------------------
revision 1.552
date: 2013/07/22 00:51:52;  author: gilles;  state: Exp;  lines: +74 -11
Added "Subject: lala" when line length exceeds maxlinelength to help \ 
ti find what are those messages. Added also size, flags and internal date.
----------------------------
revision 1.551
date: 2013/07/19 14:05:50;  author: gilles;  state: Exp;  lines: +698 -650
Added option --maxlinelength to skip messages whose max line length is over a \ 
number of bytes.
----------------------------
revision 1.550
date: 2013/07/19 00:13:22;  author: gilles;  state: Exp;  lines: +1029 -585
Added success Domino 8.5.2
Added option --messageidnodomain to fix Mailenable bug changing the domain part \ 
of Message-Id header, and avoid duplicates
Added option --syncflagsaftercopy to fix Mailenable bug not getting the flags \ 
with the APPEND.
Added back the banner of IMAP servers, ie, the first line given after the \ 
connection established.
Added --fixInboxINBOX, turned on by default, to map automatically Inbox INBOX \ 
folder names.
IMAP server removing consecutive spaces on the header part doesn't generate \ 
duplicates (MailEnable does that).
Better output of mailbox sizes in human style (could be 1024.00 Kib, now it is \ 
1.000 Mib). Changed bytes_display_string().
Option --debugflags now prints flags on first sync (the copy) and also the \ 
PERMANENTFLAGS outpout.
Fixed nearly 200 perlcritic at level 3, all level 4. Still 5 eval "" \ 
at level 5 and 12 critics at level 3.
----------------------------
revision 1.549
date: 2013/07/06 01:09:03;  author: gilles;  state: Exp;  lines: +81 -11
Fixed two bugs coming from adding return(  ) at the end of functions.
Added tests to remove Disposition-Notification-To: header with regexmess:.
----------------------------
revision 1.548
date: 2013/07/04 02:25:05;  author: gilles;  state: Exp;  lines: +247 -201
Removed all perlcritic severity 4. Still 5 critics at severity 5.
98 critics severity 4 fixed.
----------------------------
revision 1.547
date: 2013/07/03 01:24:34;  author: gilles;  state: Exp;  lines: +11 -8
DBOX 2.41 success.
Kerio 8 success.
----------------------------
revision 1.546
date: 2013/07/02 03:49:32;  author: gilles;  state: Exp;  lines: +14 -8
Fixed IO::Socket::IP bug on Win32?
Removed SSL::DEBUG
Added "copying.." in dry mode.
----------------------------
revision 1.545
date: 2013/06/06 20:43:56;  author: gilles;  state: Exp;  lines: +27 -125
Rmoved sub starttls()
Removed sub myconnect()
Removed sub RawSocket2()
Applied patch from Jim Klimov to handle proxyauth failures
----------------------------
revision 1.544
date: 2013/06/02 23:36:16;  author: gilles;  state: Exp;  lines: +25 -24
Remove myconnect() use. Replaced by $imap->connect()
Removed sub Split add in Mail::IMAPClient
----------------------------
revision 1.543
date: 2013/05/22 01:22:03;  author: gilles;  state: Exp;  lines: +12 -7
SSL_verify_mode 0 to avoid warning about Man-In-The-Middle.
----------------------------
revision 1.542
date: 2013/05/06 08:30:35;  author: gilles;  state: Exp;  lines: +7 -7
Syntax with "" fix.
----------------------------
revision 1.541
date: 2013/05/06 07:10:29;  author: gilles;  state: Exp;  lines: +111 -74
Started perlcritic corrections. Left 4 eval at level 5.
----------------------------
revision 1.540
date: 2013/04/22 11:05:51;  author: gilles;  state: Exp;  lines: +11 -982
Removed old 2.2.9 Mail::IMAPClient patch stuff.
----------------------------
revision 1.539
date: 2013/04/22 00:54:22;  author: gilles;  state: Exp;  lines: +12 -12
Fixed require namespace with uri_escape() calls.
----------------------------
revision 1.538
date: 2013/04/22 00:46:54;  author: gilles;  state: Exp;  lines: +94 -9
Added XOAUTH authentication. Thanks to Eduardo Bortoluzzi Junior.
----------------------------
revision 1.537
date: 2013/04/19 06:59:17;  author: gilles;  state: Exp;  lines: +9 -9
MDaemon 9.6.5, Surgemail 6.3d-72
----------------------------
revision 1.536
date: 2013/04/17 14:33:12;  author: gilles;  state: Exp;  lines: +7 -7
Added --delete1 as an alias for --delete
----------------------------
revision 1.535
date: 2013/04/17 12:47:58;  author: gilles;  state: Exp;  lines: +42 -33
Updated README part.
----------------------------
revision 1.534
date: 2013/04/16 15:31:50;  author: gilles;  state: Exp;  lines: +26 -17
Added --search1 and --search2 to allow different searches on each host.
----------------------------
revision 1.533
date: 2013/04/10 12:03:39;  author: gilles;  state: Exp;  lines: +8 -6
Comment in select_msgs()
----------------------------
revision 1.532
date: 2013/04/10 08:33:52;  author: gilles;  state: Exp;  lines: +11 -9
Fixed Scott issue again. Was not enough.
----------------------------
revision 1.531
date: 2013/04/09 08:10:38;  author: gilles;  state: Exp;  lines: +7 -7
Fixed Scott issue, took long time (all messages list) even with --useuid \ 
--delete --nousecache --maxage 1
----------------------------
revision 1.530
date: 2013/04/09 08:00:54;  author: gilles;  state: Exp;  lines: +13 -14
Clarified select_msgs() a little.
----------------------------
revision 1.529
date: 2013/03/29 14:32:26;  author: gilles;  state: Exp;  lines: +14 -12
Phil patch.
----------------------------
revision 1.528
date: 2013/03/29 03:12:45;  author: gilles;  state: Exp;  lines: +60 -21
Applied Phil patch.
----------------------------
revision 1.527
date: 2013/03/29 01:15:05;  author: gilles;  state: Exp;  lines: +10 -8
Mail2World Server
Zarafa Gateway
----------------------------
revision 1.526
date: 2013/02/27 22:40:45;  author: gilles;  state: Exp;  lines: +9 -7
Apple Server
Zarafa server
----------------------------
revision 1.525
date: 2013/02/05 12:52:10;  author: gilles;  state: Exp;  lines: +9 -9
Typo synchronise -> synchronize.
----------------------------
revision 1.524
date: 2013/01/31 20:41:29;  author: gilles;  state: Exp;  lines: +8 -7
Small fix in help message.
\\D
----------------------------
revision 1.523
date: 2013/01/31 14:12:21;  author: gilles;  state: Exp;  lines: +118 -99
Reorganized the --help message.
----------------------------
revision 1.522
date: 2013/01/28 02:50:49;  author: gilles;  state: Exp;  lines: +13 -13
Printing info with several host1 folder going to one host2 folder is in --debug \ 
mode now.
----------------------------
revision 1.521
date: 2013/01/23 07:48:01;  author: gilles;  state: Exp;  lines: +7 -7
Speed. --nocheckmessageexists is activated by default since --checkmessageexists \ 
often slow down transfers too much.
----------------------------
revision 1.520
date: 2013/01/23 07:41:48;  author: gilles;  state: Exp;  lines: +103 -30
Fix. Removed reference to DWTFPL since license is NOLIMIT now.
License file is LICENSE now, no longer COPYING.
Fix. Handle the case where several folders on host1 go to one folder on host2 \ 
with --delete2 option.
     The bug was imapsync was copying messages and deleting them on next folder.
----------------------------
revision 1.519
date: 2012/12/31 09:51:40;  author: gilles;  state: Exp;  lines: +11 -9
Usability fix. --foldersizesatend is on if --foldersizes is on. Off if \ 
--nofoldersizesatend
----------------------------
revision 1.518
date: 2012/12/24 00:27:34;  author: gilles;  state: Exp;  lines: +9 -6
Bugfix. When identtifying with header, change tabulations to spaces (Gmail bug \ 
on with "Received:" on multilines).
----------------------------
revision 1.517
date: 2012/12/11 07:13:04;  author: gilles;  state: Exp;  lines: +17 -10
Added Deerfield VisNetic MailServer 5.8.6
Bugfix. Automatic --nocheckmessageexists when --noabletosearch is set.
----------------------------
revision 1.516
date: 2012/11/02 22:15:04;  author: gilles;  state: Exp;  lines: +43 -38
Added current date at the beginning of the run, useful when imapsync doesn't end \ 
properly or hasn't finished yet.
Better output for diff statistics.
----------------------------
revision 1.515
date: 2012/10/31 12:56:02;  author: gilles;  state: Exp;  lines: +12 -9
Added Initial difference to compare it with Final difference.
----------------------------
revision 1.514
date: 2012/10/31 01:39:38;  author: gilles;  state: Exp;  lines: +32 -16
Added --foldersizesatend and --nofoldersizesatend, on by default.
Added statistic host2 minus host1: number of messages and bytes.
----------------------------
revision 1.513
date: 2012/10/30 22:31:49;  author: gilles;  state: Exp;  lines: +40 -19
Add --fixslash2 to avoid 'Invalid mailbox name' when --sep2 is not / and sep1 is \ 
/ and host1 folders contain --sep2 characters.
----------------------------
revision 1.512
date: 2012/10/30 01:44:26;  author: gilles;  state: Exp;  lines: +22 -8
Added option --showpasswords
--showpasswords        : shows passwords on output instead of "MASKED".
Off by default.
----------------------------
revision 1.511
date: 2012/10/27 22:37:57;  author: gilles;  state: Exp;  lines: +44 -20
Added --delete2duplicates; Delete messages in host2 that are duplicates.
--delete2duplicates is on when --delete2 is on unless --nodelete2duplicates.
----------------------------
revision 1.510
date: 2012/10/27 15:18:44;  author: gilles;  state: Exp;  lines: +36 -30
Added --pidfilelocking option to abort in case another imapsync may be running.
----------------------------
revision 1.509
date: 2012/10/24 14:57:56;  author: gilles;  state: Exp;  lines: +41 -13
Added option --noabletosearch to allow listing messages without SEARCH command. \ 
Hack for imap server softalk 7.6.4. (8.6 is fine about search)
----------------------------
revision 1.508
date: 2012/09/10 21:10:13;  author: gilles;  state: Exp;  lines: +81 -17
Added ETA after each copy. Estimated Time of Arrival.
----------------------------
revision 1.507
date: 2012/09/09 12:57:44;  author: gilles;  state: Exp;  lines: +20 -12
Bugfix. Previous fix about characters *|?:"<> in cache path was not \ 
complete.
----------------------------
revision 1.506
date: 2012/09/07 14:51:00;  author: gilles;  state: Exp;  lines: +10 -7
Option. Added --noexpungeaftereach to speedup --delete --expunge from Gmail.
----------------------------
revision 1.505
date: 2012/09/07 10:40:55;  author: gilles;  state: Exp;  lines: +10 -10
Usability. Added Host1 or Host2 before "Nb messages" "Total \ 
size" with --foldersiszes
----------------------------
revision 1.504
date: 2012/08/28 13:10:26;  author: gilles;  state: Exp;  lines: +10 -9
Bugfix. sentsince sentbefore in int seconds.
----------------------------
revision 1.503
date: 2012/08/27 23:42:39;  author: gilles;  state: Exp;  lines: +36 -19
Added transfer rate and messages rate after each copy.
----------------------------
revision 1.502
date: 2012/08/27 10:00:43;  author: gilles;  state: Exp;  lines: +43 -22
Added option --nocheckmessageexists to check speed up with Tobbit imap server.
Bugfix. Convert *|?:"<> characters to _ because they are forbidden on \ 
Windows paths.
Use Time::HiRes time to get time with better precesion than the second.
----------------------------
revision 1.501
date: 2012/08/13 12:59:23;  author: gilles;  state: Exp;  lines: +101 -101
Changed tmp dir for tests to W/tmp
----------------------------
revision 1.500
date: 2012/08/10 04:58:46;  author: gilles;  state: Exp;  lines: +40 -28
Bugfix. The cache system didn't work in Win32 (problem with \ transformation)
Added option --nocheckselectable to fix INBOX issue with Jana-server.
Documentation. Example for --delete2foldersbutnot
----------------------------
revision 1.499
date: 2012/07/30 10:56:26;  author: gilles;  state: Exp;  lines: +45 -31
Bugfix. Check the return of touch calls.
----------------------------
revision 1.498
date: 2012/07/20 14:28:45;  author: gilles;  state: Exp;  lines: +22 -6
Added several connection ckecks like old good imapsync-1.181 to imapsync-1.398
----------------------------
revision 1.497
date: 2012/07/14 19:48:04;  author: gilles;  state: Exp;  lines: +43 -28
Added --authmech PREAUTH capabiliy. (Patch from David Abrahams).
----------------------------
revision 1.496
date: 2012/07/12 20:53:49;  author: gilles;  state: Exp;  lines: +12 -11
Bugfix. Unsubsribe folder before deleting it (can bug sometimes).
----------------------------
revision 1.495
date: 2012/07/11 04:56:33;  author: gilles;  state: Exp;  lines: +7 -8
Bugfix about last patch $h2_total_bytes_duplicate
----------------------------
revision 1.494
date: 2012/07/11 03:50:43;  author: gilles;  state: Exp;  lines: +40 -12
Usability. Use KiB MiB GiB etc in result summary. Patch from Mark Atwood.
----------------------------
revision 1.493
date: 2012/06/30 00:28:51;  author: gilles;  state: Exp;  lines: +9 -9
Bug fix. Port 143 when --ssl and --tls together.
----------------------------
revision 1.492
date: 2012/06/29 23:32:04;  author: gilles;  state: Exp;  lines: +7 -7
Bug fix. Don't filter flag when --nofilterflags is used during the message copy.
----------------------------
revision 1.491
date: 2012/06/20 09:53:27;  author: gilles;  state: Exp;  lines: +8 -8
Added value of internal date in --debug mode.
----------------------------
revision 1.490
date: 2012/05/22 21:03:40;  author: gilles;  state: Exp;  lines: +10 -14
Updated Cyrus info.
----------------------------
revision 1.489
date: 2012/05/22 20:54:13;  author: gilles;  state: Exp;  lines: +20 -14
Print dry mode when expunging.
----------------------------
revision 1.488
date: 2012/04/15 17:38:21;  author: gilles;  state: Exp;  lines: +8 -8
Reverse patch applied in 1.485
It was "2) eval and --delete2foldersonly --delete2foldersbutnot that need \ 
also good escaping."
The "good" escaping was bad. No escaping needed. It permits imapsync \ 
variables like ${h2_sep}
in --delete2foldersonly
But good escaping has to be done in parameter value like --delete2foldersbutnot \ 
/\[Gmail\]/
instead of --delete2foldersbutnot /[Gmail]/ (for example).
----------------------------
revision 1.487
date: 2012/02/29 05:29:21;  author: gilles;  state: Exp;  lines: +7 -7
Fixed a useless Perl warning.
----------------------------
revision 1.486
date: 2012/02/23 23:05:49;  author: gilles;  state: Exp;  lines: +10 -10
Removed "Memory/biggest message ratio" in final stats, useless now.
Fixed a warning about memory_consumption when the call fails.
----------------------------
revision 1.485
date: 2012/02/19 22:24:23;  author: gilles;  state: Exp;  lines: +16 -12
Applied Pierre GUILLAUME patch about
 1) $cache_dir and bsd_globs() that needs escaped characters.
 2) eval and --delete2foldersonly --delete2foldersbutnot that need also good \ 
escaping. Thanks Pierre.
----------------------------
revision 1.484
date: 2012/02/07 00:19:33;  author: gilles;  state: Exp;  lines: +8 -7
Just a comment about examine versus select on host1.
----------------------------
revision 1.483
date: 2012/02/06 23:16:06;  author: gilles;  state: Exp;  lines: +7 -7
Bug fix. Read-only mode on host1 can't be done with --delete (back to select \ 
instead of examine).
----------------------------
revision 1.482
date: 2012/01/23 00:39:12;  author: gilles;  state: Exp;  lines: +25 -10
Added --exitwhenover option to avoid locking when transfers exceed maximum limit,
See for example http://support.google.com/a/bin/answer. … er=1071518
--exitwhenover 2500000000 if host1 is Gmail
--exitwhenover  500000000 if host2 is Gmail
----------------------------
revision 1.481
date: 2012/01/22 23:43:02;  author: gilles;  state: Exp;  lines: +24 -9
Check if a message exists before fetching it (could have been deleted recently)
----------------------------
revision 1.480
date: 2012/01/08 05:11:03;  author: gilles;  state: Exp;  lines: +8 -7
a1.net fix.
----------------------------
revision 1.479
date: 2011/12/16 05:30:27;  author: gilles;  state: Exp;  lines: +33 -26
Unified outout in --debug mode. Lines start with Host1 or Host2.
----------------------------
revision 1.478
date: 2011/12/16 04:10:32;  author: gilles;  state: Exp;  lines: +11 -9
Changed output about messages ignored to better reflect what is going on.
----------------------------
revision 1.477
date: 2011/12/11 10:07:09;  author: gilles;  state: Exp;  lines: +8 -8
--split down to 100 to follow the recommendation of RFC2683 section 3.2.1.5
Thanks to Phil Pearl for this advice.
----------------------------
revision 1.476
date: 2011/12/10 01:33:50;  author: gilles;  state: Exp;  lines: +34 -8
Applied Ameir Abdeldayem patch to deal with errors like
"Host1 Sent/15 size 1428 ignored (no header so we ignore this message)"
It happens with Sent folder when no Message-Id nor Received header
are defined in a message.
----------------------------
revision 1.475
date: 2011/12/08 08:23:16;  author: gilles;  state: Exp;  lines: +7 -7
Default header used to identify a message are now "Message-Id" and \ 
"Received".
----------------------------
revision 1.474
date: 2011/12/02 20:30:16;  author: gilles;  state: Exp;  lines: +9 -9
Default down from 1000 to --split1 500. (Cyrus "Word too long")
----------------------------
revision 1.473
date: 2011/12/01 14:06:23;  author: gilles;  state: Exp;  lines: +8 -8
Fixed output. fetch_hash_2 no longer exists.
----------------------------
revision 1.472
date: 2011/12/01 12:44:48;  author: gilles;  state: Exp;  lines: +11 -6
Added start and end dates in the final statistics.
----------------------------
revision 1.471
date: 2011/11/24 09:29:26;  author: gilles;  state: Exp;  lines: +21 -20
Checked and updated "Similar softwares" section in documentation.
----------------------------
revision 1.470
date: 2011/11/23 18:14:20;  author: gilles;  state: Exp;  lines: +7 -7
typo
----------------------------
revision 1.469
date: 2011/11/20 17:44:35;  author: gilles;  state: Exp;  lines: +16 -9
Added --nofilterflags to chech STORE flags ignoring PERMANENTFLAGS (Exchange tests)
----------------------------
revision 1.468
date: 2011/11/18 01:23:37;  author: gilles;  state: Exp;  lines: +33 -105
Replaced fetch_hash_2() calls by normal fetch_hash()
----------------------------
revision 1.467
date: 2011/11/17 15:00:15;  author: gilles;  state: Exp;  lines: +20 -16
Subscribe to host2 folders only for those not already subscribed.
----------------------------
revision 1.466
date: 2011/11/17 14:31:55;  author: gilles;  state: Exp;  lines: +76 -60
Use examine() on host1 instead of select().
----------------------------
revision 1.465
date: 2011/11/17 14:02:53;  author: gilles;  state: Exp;  lines: +22 -22
Changed imapsync homepage from http://www.linux-france.org/prj/imapsync/ to \ 
http://imapsync.lamiral.info/
Fix select behavior on host2 to allow Gmail folders that don't exist but that \ 
are listed.
----------------------------
revision 1.464
date: 2011/11/14 23:59:46;  author: gilles;  state: Exp;  lines: +8 -8
Replaced // by ? : equivalent to be perl 5.8 compliant.
----------------------------
revision 1.463
date: 2011/11/12 21:58:52;  author: gilles;  state: Exp;  lines: +9 -7
--subscribe is on by defaut.
----------------------------
revision 1.462
date: 2011/10/16 23:48:58;  author: gilles;  state: Exp;  lines: +14 -11
Added --nocacheaftercopy to avoid bad uids in cache with --useuid or --usecache \ 
and strange uid generator like dbmail 2.2.17
----------------------------
revision 1.461
date: 2011/10/07 21:02:15;  author: gilles;  state: Exp;  lines: +8 -8
MailEnable
Mirapoint
----------------------------
revision 1.460
date: 2011/09/21 20:19:46;  author: gilles;  state: Exp;  lines: +8 -8
Avoid Perl warning 'Use of uninitialized value $uid1 in exists'. Thanks to Klaus \ 
Franken
----------------------------
revision 1.459
date: 2011/09/21 20:10:38;  author: gilles;  state: Exp;  lines: +7 -7
Kerio 7.2.0 Patch 1 as host2
----------------------------
revision 1.458
date: 2011/08/24 22:26:20;  author: gilles;  state: Exp;  lines: +7 -6
Yahoo host1 success.
----------------------------
revision 1.457
date: 2011/08/24 21:55:56;  author: gilles;  state: Exp;  lines: +10 -10
Renamed file.csv to file.txt
----------------------------
revision 1.456
date: 2011/08/24 04:21:30;  author: gilles;  state: Exp;  lines: +15 -13
Help message on --sep when namespace separator is NIL. Yahoo case.
----------------------------
revision 1.455
date: 2011/07/29 03:00:25;  author: gilles;  state: Exp;  lines: +8 -8
Empty default value for $h1_flags $h2_flags to avoid useless Perl warnings.
----------------------------
revision 1.454
date: 2011/07/15 16:17:06;  author: gilles;  state: Exp;  lines: +22 -10
file.csv example
----------------------------
revision 1.453
date: 2011/07/15 00:35:37;  author: gilles;  state: Exp;  lines: +10 -6
MDaemon 12.0.3 failure as host2 (APPEND buggy)
----------------------------
revision 1.452
date: 2011/07/11 00:29:06;  author: gilles;  state: Exp;  lines: +64 -47
Added the --search option allowing to select messages with the powerful IMAP \ 
SEARCH command.
----------------------------
revision 1.451
date: 2011/06/30 11:44:38;  author: gilles;  state: Exp;  lines: +7 -8
Added IO::Socket::INET version info.
----------------------------
revision 1.450
date: 2011/06/21 00:17:20;  author: gilles;  state: Exp;  lines: +7 -7
Bugfix. Fixed ps call to work with Solaris 10. Thanks to Daniel Rohde.
----------------------------
revision 1.449
date: 2011/06/16 12:20:42;  author: gilles;  state: Exp;  lines: +13 -10
Kerio 7.2.0P1 success.
MDaemon 12.0.3 success.
----------------------------
revision 1.448
date: 2011/06/03 00:54:15;  author: gilles;  state: Exp;  lines: +9 -9
Bugfix. Date reference to select messages with --maxdate --mindate is the \ 
beginning of imapsync run now.
----------------------------
revision 1.447
date: 2011/06/02 00:01:01;  author: gilles;  state: Exp;  lines: +13 -13
Added PERMANENTFLAGS output with --debugflags
----------------------------
revision 1.446
date: 2011/05/31 09:11:18;  author: gilles;  state: Exp;  lines: +17 -17
Bugfix. Try to handle Markus bug in foldersizes() when select_msgs() returns a \ 
list of undef.
----------------------------
revision 1.445
date: 2011/05/31 08:00:45;  author: gilles;  state: Exp;  lines: +53 -46
Check if uidexpunge is supported at the beginning of execution, not when needed.
Set --uidexpunge2 if --delete2 or --expunge2 if uidexpunge not supported.
Changed all warn() calls (STDERR) to print calls (STDOUT)
----------------------------
revision 1.444
date: 2011/05/30 15:16:46;  author: gilles;  state: Exp;  lines: +10 -7
good_date() "24 Aug 77" -> "24-Aug-1977"
----------------------------
revision 1.443
date: 2011/05/28 16:50:27;  author: gilles;  state: Exp;  lines: +125 -41
 Patched tests_good_date() and good_date() with Dax Kelson patches.
----------------------------
revision 1.442
date: 2011/05/28 16:14:31;  author: gilles;  state: Exp;  lines: +28 -8
Started code to deal with epoch of messages.
----------------------------
revision 1.441
date: 2011/05/26 01:01:25;  author: gilles;  state: Exp;  lines: +14 -11
Handle better folder creation, not a failure when folder "already \ 
exists" during its creation.
----------------------------
revision 1.440
date: 2011/05/26 00:40:51;  author: gilles;  state: Exp;  lines: +28 -28
Replaced default setting. Now --delete2 sets --uidexpunge2 instead of --expunge2 \ 
(unless --nouidexpunge2 is set)
----------------------------
revision 1.439
date: 2011/05/25 03:11:41;  author: gilles;  state: Exp;  lines: +65 -9
Added epoch() routine to prepare the safe bidirectional sync (maybe...)
----------------------------
revision 1.438
date: 2011/05/25 00:47:27;  author: gilles;  state: Exp;  lines: +9 -8
Adapted the usage output multiline character to Unix or Win, \ or ^
----------------------------
revision 1.437
date: 2011/05/25 00:29:04;  author: gilles;  state: Exp;  lines: +8 -7
Bugfix. Avoid a "no number" warning when size is null.
----------------------------
revision 1.436
date: 2011/05/23 23:30:20;  author: gilles;  state: Exp;  lines: +8 -12
Added "Date" in the default --useheader list. ("Message-Id", \ 
"Message-ID", "Date")
----------------------------
revision 1.435
date: 2011/05/23 23:06:31;  author: gilles;  state: Exp;  lines: +29 -12
Bugfix. Bad header beginning with a blank character.
----------------------------
revision 1.434
date: 2011/05/16 07:16:19;  author: gilles;  state: Exp;  lines: +142 -57
Bugfix. Made --usecache work with --maxage or --maxsize or --min*
----------------------------
revision 1.433
date: 2011/05/16 03:07:59;  author: gilles;  state: Exp;  lines: +191 -49
Improved the way imapsync deals with headers:
 - Stopped getting first 2KB of message. Not a good idea.
 - If $imap2->parse_headers() fails then take the whole header (instead of body).
 - Default is like --useheader Message-Id --useheader Message-ID
 - Use header Message-Id and header Date as sig md5 when taking the whole header.

Better output in debug mode.
----------------------------
revision 1.432
date: 2011/05/15 22:06:19;  author: gilles;  state: Exp;  lines: +8 -7
Options --usecache and --maxsize --minsize can safely be used if --delete is there
----------------------------
revision 1.431
date: 2011/05/15 00:47:03;  author: gilles;  state: Exp;  lines: +17 -8
Added tests of mkpath very long path > 300 char. Win32 fails on them.
----------------------------
revision 1.430
date: 2011/05/14 23:13:06;  author: gilles;  state: Exp;  lines: +14 -9
Bugfix. Added special case for Inbox vs INBOX bug creation ("Couldn't \ 
create folder [Inbox] from [INBOX]: 143 NO INBOX already exists!")
----------------------------
revision 1.429
date: 2011/05/14 21:24:31;  author: gilles;  state: Exp;  lines: +8 -8
Adapted regression tests for good_date() when no zone is given.
----------------------------
revision 1.428
date: 2011/05/14 02:31:02;  author: gilles;  state: Exp;  lines: +8 -8
Bugfix. intarnal date needs zone data. Default to  +0000.
----------------------------
revision 1.427
date: 2011/05/14 01:48:07;  author: gilles;  state: Exp;  lines: +15 -13
Bugfix. Starttls() only for 2.2.9
----------------------------
revision 1.426
date: 2011/05/14 01:14:16;  author: gilles;  state: Exp;  lines: +8 -8
Fix. Removed a debug print always printed.
----------------------------
revision 1.425
date: 2011/05/14 00:33:46;  author: gilles;  state: Exp;  lines: +16 -15
Bugfix. Changed the way imapsync knows whether a folder exists or not. Exchange \ 
might be happy and stop deconnecting for this reason.
----------------------------
revision 1.424
date: 2011/05/14 00:12:38;  author: gilles;  state: Exp;  lines: +20 -9
Added a warning and die if --usecache and one of  --maxsize--minsize --maxage \ 
--minage is used.
----------------------------
revision 1.423
date: 2011/05/13 22:26:01;  author: gilles;  state: Exp;  lines: +23 -12
Bugfix. Reconnections are well done in tls mode now.
Zimbra 5.0.24_GA_3356.RHEL4 [host1]
Exchange 2010 SP1 RU2 [host2]
Added --debugsleep to have to play will kill and reconnections.
----------------------------
revision 1.422
date: 2011/05/08 17:21:38;  author: gilles;  state: Exp;  lines: +17 -12
Added --debugLIST to track messages list uid or number only.
Bugfix: a lack of variable initialisation caused to fetch no existing messages.
  The APPEND error then the FETCH 0 byte error may be fixed now.
----------------------------
revision 1.421
date: 2011/05/08 12:28:10;  author: gilles;  state: Exp;  lines: +8 -8
relogin1 before each folder select.
----------------------------
revision 1.420
date: 2011/05/08 00:54:05;  author: gilles;  state: Exp;  lines: +15 -18
--splitX are set into sub login_imap() now.
----------------------------
revision 1.419
date: 2011/05/08 00:36:36;  author: gilles;  state: Exp;  lines: +58 -8
Added --relogin1 option (--relogin1 5) to force a reconnection when FETCH \ 
message fails on host1.
----------------------------
revision 1.418
date: 2011/05/07 22:15:36;  author: gilles;  state: Exp;  lines: +95 -38
Added --debugcontent to avoid debugging content (can be big) with --debug option.
Added --debugflags to permit flag debugging only.
Added --flagsCase to correct flag case that are not RFC compliant \SEEN -> \ 
\Seen (on by default).
Added output to track 0 byte messages during the fetch on host1.
----------------------------
revision 1.417
date: 2011/05/05 16:12:02;  author: gilles;  state: Exp;  lines: +7 -7
Bugfix. --proxyauth2 was setting proxyauth1!
Thanks to Denis BREAN!
----------------------------
revision 1.416
date: 2011/05/01 20:44:40;  author: gilles;  state: Exp;  lines: +8 -8
MDaemon 12
Exchange 6.5 host1
----------------------------
revision 1.415
date: 2011/04/30 15:33:31;  author: gilles;  state: Exp;  lines: +20 -14
Bugfix. Modified create_folder() to avoid Inbox -> INBOX problem \ 
("already exists").
----------------------------
revision 1.414
date: 2011/04/30 00:25:38;  author: gilles;  state: Exp;  lines: +41 -19
Bugfix. --maxsize --minsize now work with --useuid
Bugfix. flag sync of already transfered messages now take care of --maxsize \ 
--minsize options.
----------------------------
revision 1.413
date: 2011/04/28 22:55:48;  author: gilles;  state: Exp;  lines: +25 -12
--delete2 implies --expunge2 now unless --noexpunge2 is given.
exit if --delete and --delete2 are given together.
Same behavior for --expunge or --expunge1.
----------------------------
revision 1.412
date: 2011/04/28 14:49:59;  author: gilles;  state: Exp;  lines: +17 -15
Added 0 length message tracking when fetching host1.
----------------------------
revision 1.411
date: 2011/04/19 23:34:30;  author: gilles;  state: Exp;  lines: +19 -11
Bugfix for "Folders in host2 not in host1" list when folders are given \ 
by --folder option or equivalent.
The old list listed too many folders with --folder INBOX for example.
----------------------------
revision 1.410
date: 2011/04/19 23:11:42;  author: gilles;  state: Exp;  lines: +9 -8
Updated success list.
----------------------------
revision 1.409
date: 2011/04/16 20:15:05;  author: gilles;  state: Exp;  lines: +7 -6
Added --takebody option.
----------------------------
revision 1.408
date: 2011/04/11 01:37:34;  author: gilles;  state: Exp;  lines: +9 -8
Added  Gimap (Gmail imap) success.
Added IMail 11.03 [host1] success
----------------------------
revision 1.407
date: 2011/04/02 23:07:09;  author: gilles;  state: Exp;  lines: +21 -12
Made --delete2 works with --uselib or --usecache
----------------------------
revision 1.406
date: 2011/03/10 01:35:57;  author: gilles;  state: Exp;  lines: +15 -13
No longer --useuid with --fast
Debug output with permanentflags.
----------------------------
revision 1.405
date: 2011/03/07 13:41:54;  author: gilles;  state: Exp;  lines: +13 -11
Added isync url.
Sleep 2 seconds after foldersizes calls.
----------------------------
revision 1.404
date: 2011/02/21 03:35:39;  author: gilles;  state: Exp;  lines: +7 -7
typo
----------------------------
revision 1.403
date: 2011/02/21 00:52:16;  author: gilles;  state: Exp;  lines: +47 -7
Added uid guessing with APPEND to improve --usecache for Exchange or Zarafa imap \ 
servers.
----------------------------
revision 1.402
date: 2011/01/25 05:17:05;  author: gilles;  state: Exp;  lines: +47 -174
Removed all the $imapX->IsUnconnected() since reconnect can be done.
Overrided append_file() for 2.2.9, copy from 3.25
----------------------------
revision 1.401
date: 2011/01/25 02:22:37;  author: gilles;  state: Exp;  lines: +195 -151
Added --useuid to speed up or deal with problems using headers.
Added --notakebody to avoid getting first 2Ko body when got "no header"
Replaced --debug_cache by --debugcache
----------------------------
revision 1.400
date: 2011/01/22 04:46:04;  author: gilles;  state: Exp;  lines: +94 -22
Fixed cache (chose only the greatest uid with dupplicate 11_21+11_201 or \ 
11_21+101_21)
Fixed cache, dealing with filenames containing \ characters.
----------------------------
revision 1.399
date: 2011/01/21 00:04:09;  author: gilles;  state: Exp;  lines: +29 -21
Added --debug_cache option to alow cache dfebugging only.
----------------------------
revision 1.398
date: 2011/01/18 03:03:24;  author: gilles;  state: Exp;  lines: +7 -6
Fix. Removed too much about buffersize.
----------------------------
revision 1.397
date: 2011/01/18 02:39:12;  author: gilles;  state: Exp;  lines: +25 -19
Changed --delete2foldersnot option name to --delete2foldersbutnot
----------------------------
revision 1.396
date: 2011/01/18 02:03:49;  author: gilles;  state: Exp;  lines: +23 -11
Added --authmd51 and --authmd52 options to allow CRAM-MD5 authentication per host.
----------------------------
revision 1.395
date: 2011/01/15 04:57:28;  author: gilles;  state: Exp;  lines: +8 -8
--debugimap* implies --debug now.
----------------------------
revision 1.394
date: 2011/01/15 04:46:16;  author: gilles;  state: Exp;  lines: +21 -11
Added info about biggest messages.
----------------------------
revision 1.393
date: 2011/01/15 03:40:43;  author: gilles;  state: Exp;  lines: +7 -7
*** empty log message ***
----------------------------
revision 1.392
date: 2011/01/15 03:29:37;  author: gilles;  state: Exp;  lines: +17 -8
Added --delete2foldersnot option: do not delete folders matching regex.
----------------------------
revision 1.391
date: 2011/01/10 23:11:49;  author: gilles;  state: Exp;  lines: +7 -7
*** empty log message ***
----------------------------
revision 1.390
date: 2011/01/10 05:47:43;  author: gilles;  state: Exp;  lines: +403 -94
Added --usecache option. Goal: speed up the synchronisation.
----------------------------
revision 1.389
date: 2011/01/06 04:28:58;  author: gilles;  state: Exp;  lines: +7 -6
Mirapoint host1 success
----------------------------
revision 1.388
date: 2010/12/29 22:46:08;  author: gilles;  state: Exp;  lines: +44 -10
Added help to guess separator and prefix when NAMESPACE is not available.
----------------------------
revision 1.387
date: 2010/12/22 02:27:39;  author: gilles;  state: Exp;  lines: +13 -8
Added option --delete2foldersonly <regex>: delete only folders matching regex.
----------------------------
revision 1.386
date: 2010/12/09 22:34:25;  author: gilles;  state: Exp;  lines: +7 -7
hMailServer 4.4.1
----------------------------
revision 1.385
date: 2010/12/03 23:40:12;  author: gilles;  state: Exp;  lines: +34 -25
Changed default behaviour: now --delete implies --expunge
It is safer with multiples runs.
----------------------------
revision 1.384
date: 2010/12/02 01:07:48;  author: gilles;  state: Exp;  lines: +48 -34
Code cleanup.
Wrote create_folder()
Wrote select_folder()
Simplified folder loop (a beginning)
----------------------------
revision 1.383
date: 2010/11/28 04:28:52;  author: gilles;  state: Exp;  lines: +14 -12
Allow size mismatch by default.
Use --useheader 'Message-Id' by default.
Use --noauthmd5  by default.
Why? Because users don't have to spend time or mine reading or not
reading the documentation, spend time turning on options to success.
or speed.
----------------------------
revision 1.382
date: 2010/11/19 21:31:35;  author: gilles;  state: Exp;  lines: +23 -12
Added a way to handle no headers in messages: take first 2Ko body.
----------------------------
revision 1.381
date: 2010/11/19 20:48:27;  author: gilles;  state: Exp;  lines: +7 -7
Fixed 'ps' call for Solaris.
----------------------------
revision 1.380
date: 2010/11/19 20:44:25;  author: gilles;  state: Exp;  lines: +12 -11
updated success list.
----------------------------
revision 1.379
date: 2010/11/12 00:44:02;  author: gilles;  state: Exp;  lines: +7 -7
dkimap is now a success story!
----------------------------
revision 1.378
date: 2010/11/12 00:22:59;  author: gilles;  state: Exp;  lines: +19 -11
Added --nouid1 --nouid2 options to support dkimap and other imap server without \ 
uid capability.
----------------------------
revision 1.377
date: 2010/11/09 02:12:40;  author: gilles;  state: Exp;  lines: +8 -7
Added Authen::NTLM in modules_VERSION()
----------------------------
revision 1.376
date: 2010/11/09 01:14:33;  author: gilles;  state: Exp;  lines: +17 -10
Added --domain1 --domain2 options for NTLM authentication.
----------------------------
revision 1.375
date: 2010/11/07 23:26:01;  author: gilles;  state: Exp;  lines: +12 -15
Adapted documentation to new distribution rule.
----------------------------
revision 1.374
date: 2010/11/07 18:31:06;  author: gilles;  state: Exp;  lines: +10 -7
imapsync is no longer gratis on the homepage.
----------------------------
revision 1.373
date: 2010/11/07 18:23:13;  author: gilles;  state: Exp;  lines: +7 -7
 Smarter Mail 5.5
----------------------------
revision 1.372
date: 2010/11/03 00:10:29;  author: gilles;  state: Exp;  lines: +9 -8
No thanks for *.bin and *.exe
----------------------------
revision 1.371
date: 2010/11/02 07:37:35;  author: gilles;  state: Exp;  lines: +9 -7
hMailServer 5.3.3 [host2] success
Oracle Beehive [host1] success
----------------------------
revision 1.370
date: 2010/10/31 23:07:12;  author: gilles;  state: Exp;  lines: +7 -7
Prepare to move from linux-france.org with independant name.
----------------------------
revision 1.369
date: 2010/10/31 23:03:22;  author: gilles;  state: Exp;  lines: +9 -6
No thanks with imapsync.exe just homepage link.
----------------------------
revision 1.368
date: 2010/10/31 22:17:52;  author: gilles;  state: Exp;  lines: +9 -3
Applied proxyauth-v2_1.366.patch on 1.366
----------------------------
revision 1.367
date: 2010/10/31 00:01:44;  author: gilles;  state: Exp;  lines: +44 -13
Applied patch patches/proxyauth_1.366.patch from Jorge López Pérez.
----------------------------
revision 1.366
date: 2010/10/25 17:15:52;  author: gilles;  state: Exp;  lines: +11 -12
Permit host* to have change the case of headers.
----------------------------
revision 1.365
date: 2010/10/25 11:42:41;  author: gilles;  state: Exp;  lines: +131 -157
Fix tls getline pb (read too early)
Changes place of starttls() myconnect() and other functions.
----------------------------
revision 1.364
date: 2010/10/25 09:56:27;  author: gilles;  state: Exp;  lines: +10 -15
Fix STARTTLS capability detection bug.
----------------------------
revision 1.363
date: 2010/10/24 17:16:43;  author: gilles;  state: Exp;  lines: +99 -48
Added --delete2folders option. Deletes folders in host2 that are not in host1.
----------------------------
revision 1.362
date: 2010/10/22 19:23:34;  author: gilles;  state: Exp;  lines: +24 -8
Added imapsync basename to see how imapsync.exe is used.
----------------------------
revision 1.361
date: 2010/10/19 22:58:06;  author: gilles;  state: Exp;  lines: +28 -8
Added --nomodules_version option to avoid Roger libeay32.dll missing problem.
Added test to ckeck if the release number from lfo VERSION file is a number.
----------------------------
revision 1.360
date: 2010/10/19 22:08:23;  author: gilles;  state: Exp;  lines: +8 -7
Better documentation to subscribe to the imapsync list.
----------------------------
revision 1.359
date: 2010/10/08 01:17:29;  author: gilles;  state: Exp;  lines: +15 -9
Fixed "Your vendor has not defined POSIX macro SIGALRM" bug on win32.
----------------------------
revision 1.358
date: 2010/10/08 00:40:42;  author: gilles;  state: Exp;  lines: +97 -18
Add memory_consumption for win32.
----------------------------
revision 1.357
date: 2010/10/04 21:50:56;  author: gilles;  state: Exp;  lines: +10 -10
Suppressed ref passage in foldersizes() sub.
----------------------------
revision 1.356
date: 2010/10/04 02:44:00;  author: gilles;  state: Exp;  lines: +1270 -1251
Move all subroutines below main.
Changed "local $SIG{ALRM}" to "POSIX::sigaction(SIGALRM"
----------------------------
revision 1.355
date: 2010/09/21 01:50:34;  author: gilles;  state: Exp;  lines: +39 -19
Added tests_max() max() functions.
Added memory consumption.
Added memory consumption ratio to biggest message transfered.
----------------------------
revision 1.354
date: 2010/09/16 00:25:20;  author: gilles;  state: Exp;  lines: +27 -15
Added memory_consumption_ratio()
Added memory_consumption_of_pid()
Removed memory_consumption
----------------------------
revision 1.353
date: 2010/09/14 22:46:33;  author: gilles;  state: Exp;  lines: +19 -9
Added --minsize option.
----------------------------
revision 1.352
date: 2010/09/14 21:53:55;  author: gilles;  state: Exp;  lines: +48 -12
Added memory_consumption()
Added tests_memory_consumption()
Started to analyse memory consumption.
----------------------------
revision 1.351
date: 2010/09/06 16:28:17;  author: gilles;  state: Exp;  lines: +9 -7
Fixed PERL_VERSION format in imapsync_version_lfo()
----------------------------
revision 1.350
date: 2010/09/06 01:05:09;  author: gilles;  state: Exp;  lines: +33 -24
Added --noreleasecheck option.
Added User-agent information (OS, perl version, Mail::IMAPClient version)
----------------------------
revision 1.349
date: 2010/09/06 00:25:03;  author: gilles;  state: Exp;  lines: +71 -13
Added new release checking
----------------------------
revision 1.348
date: 2010/09/05 21:28:35;  author: gilles;  state: Exp;  lines: +16 -18
Strong regex for month in good_date()
----------------------------
revision 1.347
date: 2010/09/05 21:12:10;  author: gilles;  state: Exp;  lines: +61 -50
Rewrote good_date and removed Date::Manip usage.
----------------------------
revision 1.346
date: 2010/09/05 16:28:18;  author: gilles;  state: Exp;  lines: +34 -36
Simplified default output.
----------------------------
revision 1.345
date: 2010/08/24 01:44:59;  author: gilles;  state: Exp;  lines: +45 -45
Better output when copying messages.
----------------------------
revision 1.344
date: 2010/08/20 02:06:13;  author: gilles;  state: Exp;  lines: +123 -49
Added function fetch_hash_2() allowing a list of uid to be fetched.
Changed fetch_hash() calls by fetch_hash_2() calls
This fixed the bug "Be more effiscient with large mailboxes",
search ALL was useless with --maxage or --minage in fetch_hash()
----------------------------
revision 1.343
date: 2010/08/15 18:02:11;  author: gilles;  state: Exp;  lines: +9 -7
Fix. bug in _read_line sysread can return undef;
----------------------------
revision 1.342
date: 2010/08/15 11:02:41;  author: gilles;  state: Exp;  lines: +12 -13
Clarity. Print capability after authenticated state.
----------------------------
revision 1.341
date: 2010/08/15 10:56:45;  author: gilles;  state: Exp;  lines: +42 -14
Added Mail::IMAPClient::capability_update() to reset the capability cache.
Bug fix. Some imap server change their capability after authentification,
imapsync used the capability cache from the first CAPABILITY call.
----------------------------
revision 1.340
date: 2010/08/09 00:03:21;  author: gilles;  state: Exp;  lines: +7 -7
Bug fix. Stupid undef breaking --syncinternaldates
----------------------------
revision 1.339
date: 2010/07/28 15:07:56;  author: gilles;  state: Exp;  lines: +27 -20
Made a justconnect() routine.
----------------------------
revision 1.338
date: 2010/07/28 14:56:26;  author: gilles;  state: Exp;  lines: +42 -27
Added SYNOPSIS at the top of the documentation.
----------------------------
revision 1.337
date: 2010/07/16 23:23:40;  author: gilles;  state: Exp;  lines: +12 -6
Added --usedatemanip option (not documented in --help)
Turned off Date::Manip usage by default: release 6.x vs 5.x buggy,
and dprof showed slow routines come from Date::Manip
----------------------------
revision 1.336
date: 2010/07/16 22:04:25;  author: gilles;  state: Exp;  lines: +8 -7
Bugfix. $syncinternaldates could not be set 0. Unbelievable!
----------------------------
revision 1.335
date: 2010/07/16 00:44:25;  author: gilles;  state: Exp;  lines: +26 -15
Bugfix. Fixed Date_TimeZone break under win32.
----------------------------
revision 1.334
date: 2010/07/15 12:20:48;  author: gilles;  state: Exp;  lines: +50 -32
Added statistics about "Messages void (noheader) on hostX"
----------------------------
revision 1.333
date: 2010/07/14 23:55:13;  author: gilles;  state: Exp;  lines: +7 -9
docfix
----------------------------
revision 1.332
date: 2010/07/14 23:09:02;  author: gilles;  state: Exp;  lines: +251 -178
Reviewed variable names.
Began to push subroutines below main.
----------------------------
revision 1.331
date: 2010/07/13 23:28:59;  author: gilles;  state: Exp;  lines: +6 -6
default values for h1_mess_duplicate h1_mess_size_total_duplicate
----------------------------
revision 1.330
date: 2010/07/13 03:44:36;  author: gilles;  state: Exp;  lines: +56 -36
Bugfix. Duplicate messages on host2 were not deleted with --delete2
----------------------------
revision 1.329
date: 2010/07/12 23:28:00;  author: gilles;  state: Exp;  lines: +13 -21
--skipsize turned on by default.
Why? all examples on internet use --skipsize.
imapsync can not change buggy imp servers.

Useless code cleanup.
----------------------------
revision 1.328
date: 2010/07/12 22:49:23;  author: gilles;  state: Exp;  lines: +18 -19
Changed basic documention:
 - examples with --password1 instead of --passfile1
Why? all exemples on internet use --password1 so users
use --password1 even I've never told them to do so.
Usability fix.
----------------------------
revision 1.327
date: 2010/07/12 00:23:02;  author: gilles;  state: Exp;  lines: +7 -5
Good exit at the end.
----------------------------
revision 1.326
date: 2010/07/12 00:16:03;  author: gilles;  state: Exp;  lines: +9 -7
Default value when no reconnect.
----------------------------
revision 1.325
date: 2010/07/11 23:26:04;  author: gilles;  state: Exp;  lines: +72 -38
Added --pidfile option.
Added die_clean() exit_clean() functions to remove pid file before quitting.
----------------------------
revision 1.324
date: 2010/07/11 21:28:23;  author: gilles;  state: Exp;  lines: +24 -18
Added --debugimap1 --debugimap2 to permit imap outpout with only one host.
----------------------------
revision 1.323
date: 2010/07/11 21:10:17;  author: gilles;  state: Exp;  lines: +28 -10
Added Reconnect_counter()
Added reconnect statistics
----------------------------
revision 1.322
date: 2010/07/10 22:30:18;  author: gilles;  state: Exp;  lines: +46 -9
Added regression tests to remove first "From " header line. \ 
tests_regexmess()
----------------------------
revision 1.321
date: 2010/07/09 03:27:31;  author: gilles;  state: Exp;  lines: +6 -6
Added Smarter Mail 5.0 success.
----------------------------
revision 1.320
date: 2010/07/09 03:02:07;  author: gilles;  state: Exp;  lines: +20 -23
Better reconnect handling.
----------------------------
revision 1.319
date: 2010/07/09 00:49:26;  author: gilles;  state: Exp;  lines: +9 -7
Added Maxcommandlength call.
----------------------------
revision 1.318
date: 2010/07/07 23:44:35;  author: gilles;  state: Exp;  lines: +43 -39
Added --subscribe_all option.
Reviewed and updated inline help.
----------------------------
revision 1.317
date: 2010/07/07 22:49:09;  author: gilles;  state: Exp;  lines: +13 -6
Bug report guideline: upgrade!
----------------------------
revision 1.316
date: 2010/06/29 16:18:09;  author: gilles;  state: Exp;  lines: +10 -11
Typo bandwidth.
----------------------------
revision 1.315
date: 2010/06/11 02:51:54;  author: gilles;  state: Exp;  lines: +8 -6
*** empty log message ***
----------------------------
revision 1.314
date: 2010/06/11 01:42:44;  author: gilles;  state: Exp;  lines: +455 -16
Added reconnect behavior with Mail::IMAPClient 2.2.9
----------------------------
revision 1.313
date: 2010/06/10 00:37:09;  author: gilles;  state: Exp;  lines: +6 -6
36 success stories
----------------------------
revision 1.312
date: 2010/06/10 00:35:46;  author: gilles;  state: Exp;  lines: +6 -5
1und1 success story
----------------------------
revision 1.311
date: 2010/04/27 23:03:39;  author: gilles;  state: Exp;  lines: +35 -12
Fixed bug in compare_lists(). Thanks to Pertti Karppinen.
----------------------------
revision 1.310
date: 2010/02/26 01:24:59;  author: gilles;  state: Exp;  lines: +10 -11
Removed modules_VERSION() call (useless)
Replaced Phil regex with /e one.
----------------------------
revision 1.309
date: 2010/02/25 23:18:04;  author: gilles;  state: Exp;  lines: +63 -65
Better imap banner handling (first line read).
removed sub myconnect_v2()
Removed Mail::IMAPClient::Socket use.
Added sub RawSocket2() (RawSocket 3.23 failed as is, do not know why)
Added Mail::IMAPClient::Ignoresizeerrors for 2.2.9
Honot --allowsizemismatch with 2.2.9
----------------------------
revision 1.308
date: 2010/02/24 01:29:11;  author: gilles;  state: Exp;  lines: +15 -9
Fixed STARTTLS missing imap begin line.
----------------------------
revision 1.307
date: 2010/02/09 17:49:34;  author: gilles;  state: Exp;  lines: +68 -9
Added tests_imap2_folder_name()
's/.*?(?:(\\(?:Answered|Flagged|Deleted|Seen|Recent|Draft)\s?)|$)/$1/g' check (good!)
----------------------------
revision 1.306
date: 2010/02/07 21:38:15;  author: gilles;  state: Exp;  lines: +71 -6
Added regression test about the "keep only" --regexflag example.
Added debug to understand all the regexflag transformations.
----------------------------
revision 1.305
date: 2010/01/20 22:26:03;  author: gilles;  state: Exp;  lines: +14 -14
Better output.
----------------------------
revision 1.304
date: 2010/01/20 22:10:24;  author: gilles;  state: Exp;  lines: +32 -23
Added statistic about messages deleted
Added statistic about average bandwith rate
----------------------------
revision 1.303
date: 2010/01/20 04:12:52;  author: gilles;  state: Exp;  lines: +13 -12
cosmetic changes.
----------------------------
revision 1.302
date: 2010/01/20 03:34:59;  author: gilles;  state: Exp;  lines: +59 -51
Flags are now exactly synced from host1 to host2.
Previous releases just added flags, It was a wrong behavior
since when a \Seen flag is removed on host1 a sync have to
remove it on host2. imapsync is not imapadd.
----------------------------
revision 1.301
date: 2010/01/18 06:24:16;  author: gilles;  state: Exp;  lines: +92 -23
Added TLSv1 support.
----------------------------
revision 1.300
date: 2010/01/16 03:34:37;  author: gilles;  state: Exp;  lines: +250 -250
Changed name of variables. "from" replaced by imap1 "to" by \ 
imap2.
f_* replaced by h1_*
t_* replaced by h2_*
Cosmetic but easier to read nd maintain.
----------------------------
revision 1.299
date: 2010/01/15 00:19:32;  author: gilles;  state: Exp;  lines: +10 -10
imapsync is no longer GPL software.
imapsync is WTFPL software. The best licence I found.
----------------------------
revision 1.298
date: 2010/01/14 23:43:22;  author: gilles;  state: Exp;  lines: +6 -8
Fix. Removed identical "my" declaration.
----------------------------
revision 1.297
date: 2010/01/14 17:36:17;  author: gilles;  state: Exp;  lines: +13 -11
Rewrote flags_filter(), same behavior, no regex.
----------------------------
revision 1.296
date: 2010/01/14 16:57:58;  author: gilles;  state: Exp;  lines: +72 -8
Filter flags sync with the list given by PERMANENTFLAGS on --host2
----------------------------
revision 1.295
date: 2010/01/14 15:04:27;  author: gilles;  state: Exp;  lines: +10 -6
--expunge only expunge --host1 (fixed output about that)
----------------------------
revision 1.294
date: 2010/01/14 02:12:17;  author: gilles;  state: Exp;  lines: +37 -10
Added --tmpdir option. The funny part is it's useless now.
----------------------------
revision 1.293
date: 2010/01/12 05:34:27;  author: gilles;  state: Exp;  lines: +6 -6
Change call for donation.
----------------------------
revision 1.292
date: 2010/01/12 05:15:53;  author: gilles;  state: Exp;  lines: +8 -7
freshmeat rate is gone.
paypal is good to encourage myself.
----------------------------
revision 1.291
date: 2010/01/12 04:36:03;  author: gilles;  state: Exp;  lines: +10 -10
Load Term::ReadKey when needed.
----------------------------
revision 1.290
date: 2010/01/12 03:42:09;  author: gilles;  state: Exp;  lines: +7 -7
One line per folder when printing the each folder list.
----------------------------
revision 1.289
date: 2010/01/12 01:54:52;  author: gilles;  state: Exp;  lines: +6 -6
Removed unused Date_Cmp from import.
----------------------------
revision 1.288
date: 2009/09/02 20:37:22;  author: gilles;  state: Exp;  lines: +8 -6
Request all folder list only when needed (sometimes the list is very long)
----------------------------
revision 1.287
date: 2009/08/24 00:32:36;  author: gilles;  state: Exp;  lines: +6 -6
- fixed fetch_hash() to return FLAGS as "" not () when no FLAGS set.
(reading Mail-IMAPClient-3.19 code)
   2013-05-31 14:42:58 by Thomas Klausner | Files touched by this commit (2880)
Log message:
Bump all packages for perl-5.18, that
a) refer 'perl' in their Makefile, or
b) have a directory name of p5-*, or
c) have any dependency on any p5-* package

Like last time, where this caused no complaints.
   2012-10-08 14:19:35 by Aleksej Saushev | Files touched by this commit (307)
Log message:
Drop PKG_DESTDIR_SUPPORT setting, "user-destdir" is default these days.
   2012-10-03 23:59:10 by Thomas Klausner | Files touched by this commit (2798)
Log message:
Bump all packages that use perl, or depend on a p5-* package, or
are called p5-*.

I hope that's all of them.
   2009-09-29 14:34:20 by David Brownlee | Files touched by this commit (1) | Package updated
Log message:
Remove subst of IMAPClient => ImapClient2 now we can use the standard
IMAPClient module. Bump pkgrevision
   2009-08-13 17:20:33 by David Brownlee | Files touched by this commit (2) | Package updated
Log message:
Updated mail/imapsync to 1.286

pkgsrc change:
Add missing p5-Date-Manip depends - noted by Martti Kuparinen

upstream changes:

revision 1.286
date: 2009/07/24 15:53:04;  author: gilles;  state: Exp;  lines: +10 -7
Bug fix: allow3x is on by default (was badly done after check_lib_version())

revision 1.285
date: 2009/07/03 00:59:20;  author: gilles;  state: Exp;  lines: +38 -17
Applied "patch -p0 < patches/imapsync.1.284.patch"
Attached is a patch against 1.284 with the following changes:

- [Bug] to_folder_name() failed to escape $f_prefix so --prefix1 <string> \ 
was treated like --prefix1 <regex> instead

- [Enhancement] updated parse_header_msg1() to return 0 on duplicate or undef on \ 
"no header" so now the "+ Skipping msg" will show either \ 
"no header" or "duplicate" as appropriate

- [Bug] flag handling: make sure we don't try to set \Recent as RFC 2060 doesn't \ 
allow for that

- [Enhancement] flag handling: only add missing flags instead of always calling \ 
$to->store() to set flags even when the flags already matched what we \ 
wanted... my first patch just used string comparison, this patch actually uses a \ 
hash for comparison so we're smarter about flags even when the order on $from \ 
and $to are different now - definitely helps speed up imapsync when lots of \ 
messages have flags and running sync in multiple passes

Phil

revision 1.284
date: 2009/06/30 03:14:24;  author: gilles;  state: Exp;  lines: +15 -19
allow Mail::IMAPClient 3.0.xx by default
Removed Mail::IMAPClient::Ssl since 3.0.19 has it now.

revision 1.283
date: 2009/06/30 02:54:57;  author: gilles;  state: Exp;  lines: +123 -94
Applied Phil Lobbes patch as is : ./patches/imapsync.1.282.patch

revision 1.282
date: 2009/05/11 00:05:39;  author: gilles;  state: Exp;  lines: +15 -10
Added option --justlogin

revision 1.281
date: 2009/04/24 13:58:15;  author: gilles;  state: Exp;  lines: +29 -6
Added tests_flags_regex() regression tests.

revision 1.280
date: 2009/04/02 11:32:10;  author: gilles;  state: Exp;  lines: +103 -47
Applied Phil patch with many IsUnconnected() calls.

revision 1.279
date: 2009/03/22 00:12:15;  author: gilles;  state: Exp;  lines: +9 -7
isUnconnected BAD IsUnconnected GOOD!

revision 1.278
date: 2009/02/23 00:40:25;  author: gilles;  state: Exp;  lines: +14 -12
Less imap output with +FLAGS.SILENT
Changed unsubscribe subscribe order in documentation.
Typos.

revision 1.277
date: 2009/02/21 12:10:50;  author: gilles;  state: Exp;  lines: +8 -6
Better example explanation.

revision 1.276
date: 2009/02/21 04:04:08;  author: gilles;  state: Exp;  lines: +15 -22
Removed mailto: in MAILING-LIST section.

revision 1.275
date: 2009/02/21 02:04:26;  author: gilles;  state: Exp;  lines: +25 -14
Change real password to "MASKED" in command line output.

revision 1.274
date: 2009/02/21 01:10:02;  author: gilles;  state: Exp;  lines: +14 -8
--delete 2 is now a fatal error.

revision 1.273
date: 2009/02/21 00:48:40;  author: gilles;  state: Exp;  lines: +36 -37
Print a warning and return error code each time a disconnection occurs.

revision 1.272
date: 2009/02/20 23:41:09;  author: gilles;  state: Exp;  lines: +78 -78
Fixed many English errors (thanks to Reuben Thomas)

revision 1.271
date: 2009/02/19 23:38:32;  author: gilles;  state: Exp;  lines: +28 -35
Bug fix about $t_prefix and INBOX '.' was hardcoded.
Small change on documentation.

revision 1.270
date: 2009/02/14 22:21:35;  author: gilles;  state: Exp;  lines: +16 -11
Another Phil Lobbes patch.
Exit with error code and warning when a server disconnect
during the folder loop.

revision 1.269
date: 2009/02/14 22:08:18;  author: gilles;  state: Exp;  lines: +65 -38
Applied Phil Lobbes patches.
- catch (what should be) fatal eval errors for regextrans2,
  $regexflag, $regexmess, instead of silently ignoring them
  and letting the user think they are working/OK
- fix login_imap() Died at .../imapsync line 780 when IsUnconnected()
  and log some more useful into to stderr than just 'Died at...'
- check_lib_version() contains a bad use of unset match/capture variables
- added and now use new function myconnect() and myconnect_v2()
  does not require hack/override of Mail::IMAPClient::connect
  and is backwards compatible with Mail::IMAPClient v2.x
- redo $Mail::IMAPClient::Authuser hack since only
  Mail::IMAPClient v2 does not have Authuser()
Many thanks to Phil.

revision 1.268
date: 2009/02/14 03:27:51;  author: gilles;  state: Exp;  lines: +22 -21
Fixed  bad VERSION_IMAPClient output

revision 1.267
date: 2008/10/07 11:36:02;  author: gilles;  state: Exp;  lines: +14 -10
Better test to check non existing folders on destination
server.

revision 1.266
date: 2008/10/07 05:56:52;  author: gilles;  state: Exp;  lines: +27 -10
*** empty log message ***

revision 1.265
date: 2008/08/30 14:20:38;  author: gilles;  state: Exp;  lines: +7 -7
carp to warn