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.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

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


I haven’t used rss2email in ages, unfortunately. And I haven’t kept it around.

AlexSchroeder 2008-06-15 08:22 UTC


Please make sure you contribute only your own work, or work licensed under the GNU Free Documentation License. Note: in order to facilitate peer review and fight vandalism, we will store your IP number for a number of days. See Privacy Policy for more information. See Info for text formatting rules. You can edit the comment page if you need to fix typos. You can subscribe to new comments by email without leaving a comment.

To save this page you must answer this question:

Please say HELLO.