diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-20 23:34:41 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-20 23:34:41 +0100 |
commit | cc85e55144bb095303ac6e27dd0859953584bddb (patch) | |
tree | 8a74e2d9b673baf9f0128232a09bc99de08d36b6 | |
parent | Re-enabled mail notification. (diff) | |
download | newspipe-cc85e55144bb095303ac6e27dd0859953584bddb.tar.gz newspipe-cc85e55144bb095303ac6e27dd0859953584bddb.tar.bz2 newspipe-cc85e55144bb095303ac6e27dd0859953584bddb.zip |
Send mail for a subscribed feed and then add to database.
-rwxr-xr-x | source/feedgetter.py | 9 |
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__": |