aboutsummaryrefslogtreecommitdiffstats
path: root/archivemail
diff options
context:
space:
mode:
authorNikolaus Schulz <microschulz@web.de>2010-12-26 15:18:36 +0100
committerNikolaus Schulz <microschulz@web.de>2010-12-26 15:18:36 +0100
commitea0d95e1214932ee6a57f276bcff43d398a2e31b (patch)
treeb03ca849dc39d9f4cbb52ef672103861f728ba1d /archivemail
parent7ee2555cc23345f2c15671c0a8cdf3b54a149c4f (diff)
downloadarchivemail-ea0d95e1214932ee6a57f276bcff43d398a2e31b.tar.gz
archivemail-ea0d95e1214932ee6a57f276bcff43d398a2e31b.tar.bz2
archivemail-ea0d95e1214932ee6a57f276bcff43d398a2e31b.zip
IMAP: don't collect statistics data when run with --quiet option
This gives a significant operation speedup in quiet mode.
Diffstat (limited to 'archivemail')
-rwxr-xr-xarchivemail2
1 files changed, 1 insertions, 1 deletions
diff --git a/archivemail b/archivemail
index cd76874..e1abbee 100755
--- a/archivemail
+++ b/archivemail
@@ -1351,7 +1351,7 @@ def _archive_imap(mailbox_name):
vprint("%d messages are matching filter" % len(message_list))
# First, gather data for the statistics.
- if total_msg_count > 0:
+ if total_msg_count > 0 and not options.quiet:
vprint("fetching size of messages...")
result, response = imap_srv.fetch('1:*', '(RFC822.SIZE)')
if result != 'OK': unexpected_error("Failed to fetch message sizes; "