From d2fca8cb5f4278f5a785109f3871a84b6974d915 Mon Sep 17 00:00:00 2001 From: Vosjedev Date: Thu, 6 Nov 2025 16:51:40 +0100 Subject: smtp: make sure self isn't in cc when in-reply-ing to email --- src/acit/smtpplugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/acit/smtpplugin.py b/src/acit/smtpplugin.py index 5f3ebfb..87285b2 100644 --- a/src/acit/smtpplugin.py +++ b/src/acit/smtpplugin.py @@ -90,6 +90,8 @@ class SmtpPlugin(): if replyto: cc.extend(replyto.cc) cc.extend(replyto.to) + if not save: + cc.remove(from_) to.append(replyto.headers["reply-to"] if "reply-to" in replyto.headers else replyto.from_) if not subject: -- cgit