diff options
| author | Barry Warsaw | 2017-06-30 03:42:09 +0000 |
|---|---|---|
| committer | Barry Warsaw | 2017-06-30 03:42:09 +0000 |
| commit | 5b7eeedd19ac69976b38aec1132b1f23d963938d (patch) | |
| tree | 4c9a13f102ae57e806882c641674bb6fd3d7ceee /src/mailman/runners/tests/test_incoming.py | |
| parent | 8f8e4f0b1075a176892d3a74dd601cefc642a870 (diff) | |
| parent | c14032bc6e398eb98910bdbe13eade7ab8ae8088 (diff) | |
| download | mailman-5b7eeedd19ac69976b38aec1132b1f23d963938d.tar.gz mailman-5b7eeedd19ac69976b38aec1132b1f23d963938d.tar.zst mailman-5b7eeedd19ac69976b38aec1132b1f23d963938d.zip | |
Diffstat (limited to 'src/mailman/runners/tests/test_incoming.py')
| -rw-r--r-- | src/mailman/runners/tests/test_incoming.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mailman/runners/tests/test_incoming.py b/src/mailman/runners/tests/test_incoming.py index b9668e765..2c7dc0d69 100644 --- a/src/mailman/runners/tests/test_incoming.py +++ b/src/mailman/runners/tests/test_incoming.py @@ -69,6 +69,17 @@ To: test@example.com items = get_queue_messages('out', expected_count=1) self.assertEqual(items[0].msgdata.get('marker'), 'posting') + def test_posting_from_invalid(self): + # A message posted to the list goes through the posting chain even if + # From: is invalid. + del self._msg['from'] + self._msg['From'] = 'anne@example.com.' + msgdata = dict(listid='test.example.com') + config.switchboards['in'].enqueue(self._msg, msgdata) + self._in.run() + items = get_queue_messages('out', expected_count=1) + self.assertEqual(items[0].msgdata.get('marker'), 'posting') + def test_owner(self): # A message posted to the list goes through the posting chain. msgdata = dict(listid='test.example.com', |
