aboutsummaryrefslogtreecommitdiff
path: root/feedgetter.py
diff options
context:
space:
mode:
Diffstat (limited to 'feedgetter.py')
-rwxr-xr-xfeedgetter.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/feedgetter.py b/feedgetter.py
index 5239dd2a..70883ed5 100755
--- a/feedgetter.py
+++ b/feedgetter.py
@@ -125,13 +125,11 @@ class FeedGetter(object):
result = self.c.execute("SELECT mail from feeds WHERE feed_site_link='" + \
a_feed.feed.link.encode('utf-8') + "'").fetchall()
if result[0][0] == "1":
- # send the article
- utils.send_mail(utils.mail_from, utils.mail_to, \
- a_feed.feed.title.encode('utf-8'), description)
+ # send the article by e-mail
threading.Thread(None, utils.send_mail, \
None, (utils.mail_from, utils.mail_to, \
a_feed.feed.title.encode('utf-8'), description) \
- )
+ ).start()
except sqlite3.IntegrityError:
# article already in the base
pass
bgstack15