# select mailbox if writable
try:
self.mail_con.select(mailbox[2])
- logging.info("Processing mailbox %s", mailbox[2])
except self.mail_con.readonly:
logging.warning("Mailbox %s is not writable and therefore skipped", mailbox[2])
continue
mailid_list = data[0].split()
return mailid_list
- def set_seen_messages(self, mid_range):
+ def set_seen_messages(self, mailbox, mid_range):
"""Sets the \\Seen flag for all messages with the respective mids."""
+ logging.info("Processing mailbox %s", mailbox[2])
try:
# Work around unsolicited server responses in imaplib by clearing them
self.mail_con.response('STORE')