summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-09-25 20:19:32 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2012-09-25 20:19:32 +0100
commit7e00dacae94cd26a0892b4e4feda80d259189ee9 (patch)
tree32dd6db2c8879616403f8a5bd994c2f8a6c0ec8f
parent589ee7f7bd0fd39b155d7e516da810057c71fd41 (diff)
remove existing Resent- headers before bouncing
-rw-r--r--alot/commands/thread.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index 1ee2d933..18596da3 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -310,6 +310,13 @@ class BounceMailCommand(Command):
ui.notify('no accounts set', priority='error')
return
+ # remove "Resent-*" headers if already present
+ del mail['Resent-From']
+ del mail['Resent-To']
+ del mail['Resent-Cc']
+ del mail['Resent-Date']
+ del mail['Resent-Message-ID']
+
# set Resent-From-header and sending account
try:
resent_from_header, account = determine_sender(mail, 'bounce')