From 53918bd9c3f4b8c5946ba7aea8fe16c7ab9844d9 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 21 Jan 2013 23:24:07 +0100 Subject: Added a new option to specify if e-mail notification is activated. --- source/feedgetter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/feedgetter.py') 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, \ -- cgit