From 29f8b8813e1f464b7171ea1830b6ed40ec24dac2 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 27 Oct 2012 11:09:45 -0400 Subject: [PATCH] rss2email: add Message-IDs so I can link messages in Mutt --- rss2email.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rss2email.py b/rss2email.py index 255cd33..2099921 100755 --- a/rss2email.py +++ b/rss2email.py @@ -41,6 +41,7 @@ import threading as _threading import time as _time import traceback as _traceback import types as _types +import uuid as _uuid import urllib.request as _urllib_request import urllib.error as _urllib_error import xml.dom.minidom as _minidom @@ -904,6 +905,7 @@ class Feed (object): subject = self._get_entry_title(entry) extra_headers = _collections.OrderedDict(( ('Date', self._get_entry_date(entry)), + ('Message-ID', '<{}@dev.null.invalid>'.format(_uuid.uuid4())), ('User-Agent', 'rss2email'), ('X-RSS-Feed', self.url), ('X-RSS-ID', id_), -- 2.26.2