diff options
author | Lars Wirzenius <liw@iki.fi> | 2006-08-12 14:46:57 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@iki.fi> | 2006-08-12 14:46:57 +0300 |
commit | 2fd44f9ecd58a7a3fb9ff56ae4bce6125142cef5 (patch) | |
tree | e40e02d8925cd81a55615474206bdbe183f40fb4 | |
parent | f1b683e709890356af023e1d80d805aab7bb4d95 (diff) | |
download | eoc-2fd44f9ecd58a7a3fb9ff56ae4bce6125142cef5.tar.gz |
Remove List-* headers before adding them. Thanks to Johannes Berg.
-rw-r--r-- | eoc.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |