projects
/
rss2email.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd89796
)
If we don't have a feed-specific section, use DEFAULT in Feed._send().
author
W. Trevor King
<wking@tremily.us>
Fri, 5 Oct 2012 01:41:26 +0000
(21:41 -0400)
committer
W. Trevor King
<wking@tremily.us>
Fri, 5 Oct 2012 01:41:26 +0000
(21:41 -0400)
rss2email.py
patch
|
blob
|
history
diff --git
a/rss2email.py
b/rss2email.py
index 2ee79eddc55c059cdd38acf4fc98947698eb3790..2e76e248f89d4f3256416c15169ad16627695bef 100755
(executable)
--- a/
rss2email.py
+++ b/
rss2email.py
@@
-1154,8
+1154,11
@@
class Feed (object):
def _send(self, sender, message):
LOG.info('send message for {}'.format(self))
+ section = self.section
+ if section not in self.config:
+ section = 'DEFAULT'
send(sender=sender, recipient=self.to, message=message,
- config=self.config, section=se
lf.se
ction)
+ config=self.config, section=section)
def run(self, send=True):
"""Fetch and process the feed, mailing entry emails.