From f8d24fa18a94f935fea43089ecc3eb68f916c2f8 Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Sat, 22 Dec 2007 20:27:32 +0000 Subject: [PATCH] * Add item url to html parts --- rss2maildir.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rss2maildir.py b/rss2maildir.py index c9a2cee..9762353 100755 --- a/rss2maildir.py +++ b/rss2maildir.py @@ -388,7 +388,12 @@ def parse_and_deliver(maildir, url, statedir): msg.add_header("Subject", item["title"]) msg.set_default_type("text/plain") - htmlpart = MIMEText(content.encode("utf-8"), "html", "utf-8") + htmlcontent = content.encode("utf-8") + htmlcontent = "%s\n\n

Item URL: %s

" %( \ + content, \ + item["link"], \ + item["link"] ) + htmlpart = MIMEText(htmlcontent.encode("utf-8"), "html", "utf-8") textparser = HTML2Text() textparser.feed(content.encode("utf-8")) textcontent = textparser.gettext() -- 2.39.5