diff options
| author | Vosjedev <vosje@vosjedev.net> | 2025-11-06 16:51:40 +0100 |
|---|---|---|
| committer | Vosjedev <vosje@vosjedev.net> | 2025-11-06 16:51:40 +0100 |
| commit | d2fca8cb5f4278f5a785109f3871a84b6974d915 (patch) | |
| tree | 2c5be2910bdcba584793e9194857551750279b21 | |
| parent | 644e0e701b00dac372ae63e8b8245c04b7838057 (diff) | |
| download | acit-d2fca8cb5f4278f5a785109f3871a84b6974d915.tar.gz acit-d2fca8cb5f4278f5a785109f3871a84b6974d915.tar.bz2 acit-d2fca8cb5f4278f5a785109f3871a84b6974d915.tar.xz | |
smtp: make sure self isn't in cc when in-reply-ing to email
| -rw-r--r-- | src/acit/smtpplugin.py | 2 |
1 files changed, 2 insertions, 0 deletions
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: |
