diff options
author | cedricbonhomme <devnull@localhost> | 2010-03-23 18:54:46 +0100 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-03-23 18:54:46 +0100 |
commit | 80b82644ac7c41d1a8b8bd2b3f272ee91fcba2d0 (patch) | |
tree | 7145d5af3e41b23d0d28179ea82aada43e108014 /feedgetter.py | |
parent | Minor improvements for the e-mail notification. (diff) | |
download | newspipe-80b82644ac7c41d1a8b8bd2b3f272ee91fcba2d0.tar.gz newspipe-80b82644ac7c41d1a8b8bd2b3f272ee91fcba2d0.tar.bz2 newspipe-80b82644ac7c41d1a8b8bd2b3f272ee91fcba2d0.zip |
Release 1.0. Mail notification. A lot of improvements and some bug fix.
Diffstat (limited to 'feedgetter.py')
-rwxr-xr-x | feedgetter.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/feedgetter.py b/feedgetter.py index 36495b43..5239dd2a 100755 --- a/feedgetter.py +++ b/feedgetter.py @@ -4,7 +4,7 @@ from __future__ import with_statement __author__ = "Cedric Bonhomme" -__version__ = "$Revision: 0.7 $" +__version__ = "$Revision: 0.8 $" __date__ = "$Date: 2010/03/01 $" __copyright__ = "Copyright (c) 2010 Cedric Bonhomme" __license__ = "GPLv3" @@ -128,6 +128,10 @@ class FeedGetter(object): # send the article utils.send_mail(utils.mail_from, utils.mail_to, \ a_feed.feed.title.encode('utf-8'), description) + threading.Thread(None, utils.send_mail, \ + None, (utils.mail_from, utils.mail_to, \ + a_feed.feed.title.encode('utf-8'), description) \ + ) except sqlite3.IntegrityError: # article already in the base pass |