From ea0d95e1214932ee6a57f276bcff43d398a2e31b Mon Sep 17 00:00:00 2001 From: Nikolaus Schulz Date: Sun, 26 Dec 2010 15:18:36 +0100 Subject: IMAP: don't collect statistics data when run with --quiet option This gives a significant operation speedup in quiet mode. --- archivemail | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archivemail') 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; " -- cgit v1.2.3