diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-21 19:33:28 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-21 19:33:28 +0100 |
commit | a059e00533bb4e6ee8955e1c906ccd71115c014c (patch) | |
tree | a3e960afffe82cb0765254bf851dea9d20eea838 /source/feedgetter.py | |
parent | Update revesion date for feedgetter.py. (diff) | |
download | newspipe-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-x | source/feedgetter.py | 4 |
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() |