fix: skip already-processing UIDs at FETCH level to avoid downloading email content

This commit is contained in:
2026-07-13 07:35:28 +08:00
parent d31ec18ea3
commit 155a6dfc53
4 changed files with 17 additions and 9 deletions

View File

@@ -48,7 +48,7 @@ def _email_poller(cfg):
logger.info("邮件轮询线程已启动")
while _running:
try:
for acct_idx, mail in poll_accounts(cfg):
for acct_idx, mail in poll_accounts(cfg, skip_uids=_processing_uids):
if not _running:
return
with _pending_lock: