Add configurable post-process hooks
authorW. Trevor King <wking@tremily.us>
Tue, 22 Jan 2013 16:59:36 +0000 (11:59 -0500)
committerW. Trevor King <wking@tremily.us>
Wed, 10 Apr 2013 19:24:41 +0000 (15:24 -0400)
commitc2492f8dc64859f586592cbfc14e3327cf326b93
tree7d6586206175b33bad826de55dd532715c0e4a71
parent2217ec5fa589dd0353a05eec0eebf8d43073e34b
Add configurable post-process hooks

On Mon, Jan 21, 2013 at 11:16:58PM -0800, Arun Persaud wrote:
> but I was wondering if there is any chance to add some hooks, so
> that the user can modify the feed before it gets send, something
> that takes the url, uid, and other interesting information and
> returns the body of the feed that should get emailed.

This is not quite what he asked for (e.g., I don't pass the URL
explicitly, the hook should return the full message instead of just
payload, ...), but I think it get's the job done.

Signed-off-by: W. Trevor King <wking@tremily.us>
rss2email/config.py
rss2email/feed.py
rss2email/hook.py [new file with mode: 0644]
rss2email/util.py
test/allthingsrss/2.config [new file with mode: 0644]
test/allthingsrss/2.expected [new file with mode: 0644]