Cybrkyd's Git Repositories

mail2x - commit: c090658

commit c090658eb0bf9f4d015295d7cc6a91560fe3f07bc77133703ccca275595a6282
author cybrkyd <noreply@cybrkyd.com> 2026-02-07 13:30:10 +0000
committer cybrkyd <noreply@cybrkyd.com> 2026-02-07 13:30:10 +0000

Commit Message

raw string for mail.store()

📊 Diffstat

mail2x.py 2
1 files changed, 1 insertions(+), 1 deletions(-)

Diff

diff --git a/mail2x.py b/mail2x.py
index 360e5ae..2e35689 100644
--- a/mail2x.py
+++ b/mail2x.py
@@ -42,7 +42,7 @@ def post_tweet_with_media(tweet_content, media_id=None):
return requests.post(tweet_url, auth=auth, json=payload)
def mark_email_as_read(mail, email_id):
- mail.store(email_id, '+FLAGS', '\Seen')
+ mail.store(email_id, '+FLAGS', r'\Seen')
def check_email_and_tweet():
mail = imaplib.IMAP4_SSL(IMAP_SERVER)