aboutsummaryrefslogtreecommitdiff
path: root/source/feedgetter.py
diff options
context:
space:
mode:
Diffstat (limited to 'source/feedgetter.py')
-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