summaryrefslogtreecommitdiff
path: root/distixlib/msg_id_extractor_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'distixlib/msg_id_extractor_tests.py')
-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']))