From 52830641556fa8f0423677b9d48b35ea54b4f9bf Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Fri, 12 Jun 2009 11:00:33 +0100 Subject: [PATCH 1/1] guid might not always exist, link is always present, don't fail on no guid. --- rss2maildir.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rss2maildir.py b/rss2maildir.py index 533e34d..4ee2126 100755 --- a/rss2maildir.py +++ b/rss2maildir.py @@ -692,12 +692,13 @@ def parse_and_deliver(maildir, url, statedir): prevmessageid = None - db_guid_key = (url + u'|' + item["guid"]).encode("utf-8") + db_guid_key = None db_link_key = (url + u'|' + item["link"]).encode("utf-8") # check if there's a guid too - if that exists and we match the md5, # return if item.has_key("guid"): + db_guid_key = (url + u'|' + item["guid"]).encode("utf-8") if db.has_key(db_guid_key): data = db[db_guid_key] data = cgi.parse_qs(data) -- 2.39.5