1
0
Fork 0
mirror of https://git.code.sf.net/p/archivemail/code synced 2024-12-21 23:32:54 +00:00

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

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