Formatting
This commit is contained in:
parent
4a385bde6b
commit
befc7ad2cd
28 changed files with 253 additions and 311 deletions
|
@ -70,14 +70,12 @@ def imap_producer(
|
|||
try:
|
||||
yield message
|
||||
except Exception:
|
||||
logger.exception(
|
||||
f"something went wrong while processing {message_uid}"
|
||||
)
|
||||
logger.exception(f"something went wrong while processing {message_uid}")
|
||||
raise
|
||||
|
||||
if not preserve:
|
||||
# tag the message for deletion
|
||||
conn.store(message_uid, '+FLAGS', '\\Deleted')
|
||||
conn.store(message_uid, "+FLAGS", "\\Deleted")
|
||||
else:
|
||||
logger.debug("did not receive any message")
|
||||
finally:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue