aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-20 23:34:41 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-20 23:34:41 +0100
commitcc85e55144bb095303ac6e27dd0859953584bddb (patch)
tree8a74e2d9b673baf9f0128232a09bc99de08d36b6 /source
parentRe-enabled mail notification. (diff)
downloadnewspipe-cc85e55144bb095303ac6e27dd0859953584bddb.tar.gz
newspipe-cc85e55144bb095303ac6e27dd0859953584bddb.tar.bz2
newspipe-cc85e55144bb095303ac6e27dd0859953584bddb.zip
Send mail for a subscribed feed and then add to database.
Diffstat (limited to 'source')
-rwxr-xr-xsource/feedgetter.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/feedgetter.py b/source/feedgetter.py
index 2dc892ac..3215d1ab 100755
--- a/source/feedgetter.py
+++ b/source/feedgetter.py
@@ -155,13 +155,12 @@ class FeedGetter(object):
articles.append(article)
- self.articles.add_articles(articles, feed_id)
-
- if feed["mail"]:
- # send new articles by e-mail if desired.
- threading.Thread(None, utils.send_mail, None, (conf.mail_from, conf.mail_to, \
+ if feed["mail"]:
+ # send new articles by e-mail if desired.
+ threading.Thread(None, utils.send_mail, None, (conf.mail_from, conf.mail_to, \
a_feed.feed.title, \
article_title, description)).start()
+ self.articles.add_articles(articles, feed_id)
if __name__ == "__main__":
bgstack15