fix: \\ instead of \

This commit is contained in:
Zichao Lin 2024-07-25 20:04:09 +08:00
parent 0ce2c5fb24
commit 76b36d6141
Signed by: earthjasonlin
GPG Key ID: 406D9913DE2E42FB

@ -89,8 +89,8 @@ def get_unforwarded_emails(account_config, logger):
if isinstance(response_part, tuple): if isinstance(response_part, tuple):
msg = email.message_from_bytes(response_part[1]) msg = email.message_from_bytes(response_part[1])
emails.append((email_id, msg)) emails.append((email_id, msg))
imap.store(email_id, '+FLAGS', '\Seen') imap.store(email_id, '+FLAGS', '\\Seen')
imap.logout() imap.logout()
if len(emails) > 0: if len(emails) > 0:
logger.info(f"Retrieved {len(emails)} new emails from {account_config['email']}") logger.info(f"Retrieved {len(emails)} new emails from {account_config['email']}")