From: Lars Wirzenius Date: Sat, 12 Aug 2006 11:46:57 +0000 (+0300) Subject: Remove List-* headers before adding them. Thanks to Johannes Berg. X-Git-Url: https://git.sommitrealweird.co.uk/eoc.git/commitdiff_plain/2fd44f9ecd58a7a3fb9ff56ae4bce6125142cef5?ds=inline Remove List-* headers before adding them. Thanks to Johannes Berg. --- diff --git a/eoc.py b/eoc.py index 124cac2..3400d65 100644 --- a/eoc.py +++ b/eoc.py @@ -904,6 +904,10 @@ class MailingList: 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)