Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
refactor(email): use _remember_processed_uid in SPF/DKIM reject paths
chengyongruecfbb0ed4fe1
diff --git a/nanobot/channels/email.py b/nanobot/channels/email.pyindex ea30a8e58..5b5856560 100644--- a/nanobot/channels/email.py+++ b/nanobot/channels/email.py@@ -395,10 +395,7 @@ class EmailChannel(BaseChannel):"(no 'spf=pass' in Authentication-Results header)",sender,)- if uid:- cycle_uids.add(uid)- if dedupe:- self._processed_uids.add(uid)+ self._remember_processed_uid(uid, dedupe, cycle_uids)continueif self.config.verify_dkim and not dkim_pass:logger.warning(@@ -406,10 +403,7 @@ class EmailChannel(BaseChannel):"(no 'dkim=pass' in Authentication-Results header)",sender,)- if uid:- cycle_uids.add(uid)- if dedupe:- self._processed_uids.add(uid)+ self._remember_processed_uid(uid, dedupe, cycle_uids)continuesubject = self._decode_header_value(parsed.get("Subject", ""))