aboutsummaryrefslogtreecommitdiff
path: root/source/feedgetter.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-21 23:24:07 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-21 23:24:07 +0100
commit53918bd9c3f4b8c5946ba7aea8fe16c7ab9844d9 (patch)
tree606a69cf70e71837b874fa954e32be0e2fe5c382 /source/feedgetter.py
parentTest if the article is present in the database before sending it via mail. (diff)
downloadnewspipe-53918bd9c3f4b8c5946ba7aea8fe16c7ab9844d9.tar.gz
newspipe-53918bd9c3f4b8c5946ba7aea8fe16c7ab9844d9.tar.bz2
newspipe-53918bd9c3f4b8c5946ba7aea8fe16c7ab9844d9.zip
Added a new option to specify if e-mail notification is activated.
Diffstat (limited to 'source/feedgetter.py')
-rwxr-xr-xsource/feedgetter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/feedgetter.py b/source/feedgetter.py
index 84dd2f47..bd35e345 100755
--- a/source/feedgetter.py
+++ b/source/feedgetter.py
@@ -155,7 +155,7 @@ class FeedGetter(object):
articles.append(article)
- if feed["mail"] and self.articles.get_articles(feed_id, article_id) == False:
+ if conf.MAIL_ENABLED and feed["mail"] and self.articles.get_articles(feed_id, article_id) == False:
# if subscribed to the feed AND if article not already in the database
threading.Thread(None, utils.send_mail, None, (conf.mail_from, conf.mail_to, \
a_feed.feed.title, \
bgstack15