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:
parent
7ee2555cc2
commit
ea0d95e121
1 changed files with 1 additions and 1 deletions
|
@ -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; "
|
||||
|
|
Loading…
Reference in a new issue