rss2email
A long time ago, I used rss2email to subscribe to blogs and wikis. Here’s a patch to an ancient version to support ModWiki/WikiModule. I assume it’ll no longer apply cleanly.
rss2email
- ** rss2email.py 2005/01/04 03:27:33 1.1
--- rss2email.py 2005/01/04 16:38:30
- **************
- ** 232,237 ****
--- 232,248 ----
return DEFAULT_FROM
+ def getWikiInfo(feed, entry):
+ """Get the wiki namespace info."""
+ result = ''
+ if entry.get('wiki_diff', []):
+ result += "\nDiff: " + entry.wiki_diff
+ if entry.get('wiki_history', []):
+ result += "\nHistory: " + entry.wiki_history
+ if entry.get('dc_contributor', []):
+ result += "\nContributor: " + entry.dc_contributor
+ return result
+
`# Simple Database of Feeds `#
class Feed:
- **************
- ** 400,406 ****
"\n\n</body></html>")
else:
message += "text/plain"
! content = unu(content).strip() + "\n\nURL: "+link
message += '; charset="utf-8"\n\n' + content + "\n"
--- 411,420 ----
"\n\n</body></html>")
else:
message += "text/plain"
! content = (unu(content).strip()
! + "\n\nURL: " + link
! + getWikiInfo(r.feed, entry))
!
message += '; charset="utf-8"\n\n' + content + "\n"
Comments
(Please contact me if you want to remove your comment.)
⁂
Hey Alex,
Does this patch apply onto recent rss2email ? I can’t find where to add the second hunk. What’s the function name to patch ?
Regards
– XavierMaillard 2008-06-14 16:25 UTC
XavierMaillard
---
I haven’t used rss2email in ages, unfortunately. And I haven’t kept it around.
– Alex Schroeder 2008-06-15 08:22 UTC
Alex Schroeder