diff options
author | Nikolaus Schulz <microschulz@web.de> | 2010-12-26 15:18:36 +0100 |
---|---|---|
committer | Nikolaus Schulz <microschulz@web.de> | 2010-12-26 15:18:36 +0100 |
commit | ea0d95e1214932ee6a57f276bcff43d398a2e31b (patch) | |
tree | b03ca849dc39d9f4cbb52ef672103861f728ba1d | |
parent | 7ee2555cc23345f2c15671c0a8cdf3b54a149c4f (diff) | |
download | archivemail-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.
-rwxr-xr-x | archivemail | 2 |
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; " |