This commit is contained in:
Nick Bebout 2011-03-12 02:44:06 +00:00
parent 8eaed02a04
commit 82dcebb23c
4 changed files with 18 additions and 16 deletions

View file

@ -6,7 +6,7 @@ imapsync - IMAP synchronization, copy or migration
tool. Synchronize mailboxes between two imap servers. Good
at IMAP migration.
$Revision: 1.102 $
$Revision: 1.103 $
=head1 INSTALL
@ -280,7 +280,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.102 2004/10/15 14:41:25 gilles Exp $
$Id: imapsync,v 1.103 2004/10/19 04:15:27 gilles Exp $
=cut
@ -322,7 +322,7 @@ my(
use vars qw ($opt_G); # missing code for this will be option.
$rcs = ' $Id: imapsync,v 1.102 2004/10/15 14:41:25 gilles Exp $ ';
$rcs = ' $Id: imapsync,v 1.103 2004/10/19 04:15:27 gilles Exp $ ';
$rcs =~ m/,v (\d+\.\d+)/;
$VERSION = ($1) ? $1 : "UNKNOWN";
@ -359,8 +359,8 @@ $error=0;
my $banner = join("",
'$RCSfile: imapsync,v $ ',
'$Revision: 1.102 $ ',
'$Date: 2004/10/15 14:41:25 $ ',
'$Revision: 1.103 $ ',
'$Date: 2004/10/19 04:15:27 $ ',
"\n",
"Mail::IMAPClient version used here is ",
$VERSION_IMAPClient, " auth md5 : $md5_supported",
@ -564,16 +564,14 @@ if ($foldersizes) {
}
if ($maxage) {
my @f_msgs = $maxage
? $from->since(time - 86400 * $maxage)
: $from->search("ALL");
my $smess2 = scalar(@f_msgs);
print "Messages in $f_fold: $smess2\n";
# The pb is fetch_hash() an only be applied on ALL messages
#
my @f_msgs = $from->since(time - 86400 * $maxage);
my $smess = scalar(@f_msgs);
foreach my $m (@f_msgs) {
my $s = $from->size($m)
or warn "Could not find size of message $m: $@\n";
$stot += $s;
$smess++;
print ".";
}
print "\n";