]> git.sommitrealweird.co.uk Git - eoc.git/commitdiff
Remove List-* headers before adding them. Thanks to Johannes Berg.
authorLars Wirzenius <liw@iki.fi>
Sat, 12 Aug 2006 11:46:57 +0000 (14:46 +0300)
committerLars Wirzenius <liw@iki.fi>
Sat, 12 Aug 2006 11:46:57 +0000 (14:46 +0300)
eoc.py

diff --git a/eoc.py b/eoc.py
index 124cac2f5bb06f10aaa23c50bf1d50d3d3f66a8c..3400d65ce528c14b18943eaecc64a2ab1d1ecb98 100644 (file)
--- a/eoc.py
+++ b/eoc.py
@@ -904,6 +904,10 @@ class MailingList:
         return text + self.template("footer", {})
 
     def send_mail_to_subscribers(self, text):
         return text + self.template("footer", {})
 
     def send_mail_to_subscribers(self, text):
+        text = self.remove_some_headers(text, ["list-id", "list-help",
+                                               "list-unsubscribe",
+                                               "list-subscribe", "list-post",
+                                               "list-owner", "precedence"])
         text = self.headers_to_add() + self.list_headers() + \
                self.headers_to_remove(text)
         text = self.append_footer(text)
         text = self.headers_to_add() + self.list_headers() + \
                self.headers_to_remove(text)
         text = self.append_footer(text)