aboutsummaryrefslogtreecommitdiff
path: root/source/feedgetter.py
diff options
context:
space:
mode:
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