diff --git a/nanobot/channels/email.py b/nanobot/channels/email.py index 681e71ef0..ea30a8e58 100644 --- a/nanobot/channels/email.py +++ b/nanobot/channels/email.py @@ -395,6 +395,10 @@ class EmailChannel(BaseChannel): "(no 'spf=pass' in Authentication-Results header)", sender, ) + if uid: + cycle_uids.add(uid) + if dedupe: + self._processed_uids.add(uid) continue if self.config.verify_dkim and not dkim_pass: logger.warning( @@ -402,6 +406,10 @@ class EmailChannel(BaseChannel): "(no 'dkim=pass' in Authentication-Results header)", sender, ) + if uid: + cycle_uids.add(uid) + if dedupe: + self._processed_uids.add(uid) continue subject = self._decode_header_value(parsed.get("Subject", ""))