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"
(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