From: W. Trevor King Date: Sat, 27 Oct 2012 15:09:45 +0000 (-0400) Subject: rss2email: add Message-IDs so I can link messages in Mutt X-Git-Tag: v3.0~72^2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=29f8b8813e1f464b7171ea1830b6ed40ec24dac2;p=rss2email.git rss2email: add Message-IDs so I can link messages in Mutt --- 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_),