Import mail that is newer than a set date#2
Conversation
Critical Bug — The Feature is a No-OpTL;DR: The two missing The
uid_validity, messages_iter = fetch_messages(
host=imap_cfg["host"],
port=int(imap_cfg.get("port", 993)),
username=imap_cfg["username"],
password=imap_cfg["password"],
mailbox=mailbox,
use_ssl=imap_cfg.get("use_ssl", True),
last_processed_uid=last_uid,
# ← since=imap_cfg.get("since_date") is missing
)
uid_validity, messages_iter = fetch_messages(
host=imap_cfg["host"],
port=int(imap_cfg.get("port", 993)),
username=imap_cfg["username"],
password=imap_cfg["password"],
mailbox=mailbox,
use_ssl=imap_cfg.get("use_ssl", True),
last_processed_uid=last_uid,
# ← since=imap_cfg.get("since_date") is missing
)The The fix is to add Secondary Bug — Empty String
|
|
Sorry, missed staging run.py for the feature change! |
I also made some pretty big updates, so now there are merge conflicts. Sorry! I do want to implement your feature though, and I like the idea of avoiding unnecessary API calls. |
Fixes #1. Included a small change to avoid calling gmail api when nothing is being imported.