From 2fea4236517bf402e8ba5517cbb2153e435f3995 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Fri, 2 May 2014 10:21:48 -0700 Subject: Updated CookHeaders to always add the poster's From: address to Reply-To: when applying from_is_list transformations. --- tests/test_handlers.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/test_handlers.py b/tests/test_handlers.py index 794288e8..c3df0cb8 100644 --- a/tests/test_handlers.py +++ b/tests/test_handlers.py @@ -1,4 +1,4 @@ -# Copyright (C) 2001-2011 by the Free Software Foundation, Inc. +# Copyright (C) 2001-2014 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -646,7 +646,8 @@ Reply-To: bperson@dom.ain """, Message.Message) msgdata = {} CookHeaders.process(mlist, msg, msgdata) - eq(msgdata['add_header']['Reply-To'], '_xtest@dom.ain') + eq(msgdata['add_header']['Reply-To'], + 'aperson@dom.ain, _xtest@dom.ain') eq(msg.get_all('reply-to'), ['bperson@dom.ain']) def test_reply_to_explicit(self): @@ -713,7 +714,8 @@ Reply-To: bperson@dom.ain msgdata = {} CookHeaders.process(self._mlist, msg, msgdata) - eq(msgdata['add_header']['Reply-To'], 'mlist@dom.ain') + eq(msgdata['add_header']['Reply-To'], + 'mlist@dom.ain, aperson@dom.ain') eq(msg.get_all('reply-to'), ['bperson@dom.ain']) def test_reply_to_extends_to_list(self): @@ -748,7 +750,7 @@ Reply-To: bperson@dom.ain CookHeaders.process(mlist, msg, msgdata) eq(msgdata['add_header']['Reply-To'], - 'aperson@dom.ain, bperson@dom.ain, _xtest@dom.ain') + 'bperson@dom.ain, aperson@dom.ain, _xtest@dom.ain') def test_reply_to_extends_to_explicit(self): eq = self.assertEqual @@ -782,7 +784,7 @@ Reply-To: bperson@dom.ain msgdata = {} CookHeaders.process(mlist, msg, msgdata) eq(msgdata['add_header']['Reply-To'], - 'mlist@dom.ain, aperson@dom.ain, bperson@dom.ain') + 'mlist@dom.ain, bperson@dom.ain, aperson@dom.ain') def test_list_headers_nolist(self): eq = self.assertEqual -- cgit v1.2.3