From 0c879280385e1ebc874403357f8f6ce4664e0b4e Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Sat, 22 Dec 2007 19:33:11 +0000 Subject: [PATCH] * Add item url to bottom of text only part --- rss2maildir.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rss2maildir.py b/rss2maildir.py index 6dad334..c9a2cee 100755 --- a/rss2maildir.py +++ b/rss2maildir.py @@ -392,6 +392,9 @@ def parse_and_deliver(maildir, url, statedir): textparser = HTML2Text() textparser.feed(content.encode("utf-8")) textcontent = textparser.gettext() + textcontent = "%s\n\nItem URL: %s" %( \ + textcontent, \ + item["link"] ) textpart = MIMEText(textcontent.encode("utf-8"), "plain", "utf-8") msg.attach(textpart) msg.attach(htmlpart) -- 2.30.2