projects
/
rss2maildir.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b6a0ae
)
* Add item url to bottom of text only part
author
Brett Parker
<iDunno@sommitrealweird.co.uk>
Sat, 22 Dec 2007 19:33:11 +0000
(19:33 +0000)
committer
Brett Parker
<iDunno@sommitrealweird.co.uk>
Sat, 22 Dec 2007 19:33:11 +0000
(19:33 +0000)
rss2maildir.py
patch
|
blob
|
history
diff --git
a/rss2maildir.py
b/rss2maildir.py
index 6dad334c6008b24e67fcfbd822f1d6db15004b4d..c9a2cee8418f92202f833ec270748afb5dafdbad 100755
(executable)
--- 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)