IMAP: don't collect statistics data when run with --quiet option

This gives a significant operation speedup in quiet mode.
This commit is contained in:
Nikolaus Schulz 2010-12-26 15:18:36 +01:00
parent 7ee2555cc2
commit ea0d95e121
1 changed files with 1 additions and 1 deletions

View File

@ -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; "