aboutsummaryrefslogtreecommitdiff
path: root/source/feedgetter.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-21 19:33:28 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-21 19:33:28 +0100
commita059e00533bb4e6ee8955e1c906ccd71115c014c (patch)
treea3e960afffe82cb0765254bf851dea9d20eea838 /source/feedgetter.py
parentUpdate revesion date for feedgetter.py. (diff)
downloadnewspipe-a059e00533bb4e6ee8955e1c906ccd71115c014c.tar.gz
newspipe-a059e00533bb4e6ee8955e1c906ccd71115c014c.tar.bz2
newspipe-a059e00533bb4e6ee8955e1c906ccd71115c014c.zip
Test if the article is present in the database before sending it via mail.
Diffstat (limited to 'source/feedgetter.py')
-rwxr-xr-xsource/feedgetter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/feedgetter.py b/source/feedgetter.py
index 8b1c8401..84dd2f47 100755
--- a/source/feedgetter.py
+++ b/source/feedgetter.py
@@ -155,8 +155,8 @@ class FeedGetter(object):
articles.append(article)
- if feed["mail"]:
- # send new articles by e-mail if desired.
+ if 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, \
article_title, description)).start()
bgstack15