summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-04-07 15:18:40 +0300
committerLars Wirzenius <liw@liw.fi>2017-04-07 15:18:40 +0300
commit5c5bb0cedca2e7c55168eb46bf2a18b50833fb8d (patch)
tree55eb6e57002cf7aa4a2193b29f4cec5643fa2d40
parent8641f60050771c431a63c35839bf68f5739f4d73 (diff)
downloaddistix-5c5bb0cedca2e7c55168eb46bf2a18b50833fb8d.tar.gz
Add test for In-Reply-To
-rw-r--r--distixlib/msg_id_extractor_tests.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/distixlib/msg_id_extractor_tests.py b/distixlib/msg_id_extractor_tests.py
index 0b5c82a..74a4886 100644
--- a/distixlib/msg_id_extractor_tests.py
+++ b/distixlib/msg_id_extractor_tests.py
@@ -63,3 +63,18 @@ Wherefore art thou?
self.assertEqual(
distixlib.get_ids_from_message(msg),
set(['capulet123@verona', 'capulet456@verona']))
+
+ def test_returns_ids_from_in_reply_to(self):
+ msg_text = '''\
+From: user@example.com
+To: other@example.com
+Subject: O, Romeo
+In-Reply-To: <capulet123@verona>, <capulet456@verona>
+
+Wherefore art thou?
+'''
+
+ msg = email.message_from_string(msg_text)
+ self.assertEqual(
+ distixlib.get_ids_from_message(msg),
+ set(['capulet123@verona', 'capulet456@verona']))