feat(projekt-matching): systemd timer, webhook trigger, inbox baseline script
This commit is contained in:
13
projekt-matching/tests/e2e/flag_inbox.py
Normal file
13
projekt-matching/tests/e2e/flag_inbox.py
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", ".."))
|
||||
from projektmatch import mailer # noqa: E402
|
||||
|
||||
box = mailer.MailBox("chancen@destengs.com", os.environ["PM_IMAP_PASSWORD"])
|
||||
uids = box.unchecked_uids()
|
||||
for uid in uids:
|
||||
box.flag_checked(uid)
|
||||
print(f"flagged {len(uids)} mails as checked")
|
||||
box.close()
|
||||
Reference in New Issue
Block a user