From d6b34ceb21951d97fd978e66d03459749d6dea6e Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 25 Feb 2015 23:18:55 +0100 Subject: Removed the functionality for the email notifications of new articles. No real added value. --- pyaggr3g470r/notifications.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'pyaggr3g470r/notifications.py') diff --git a/pyaggr3g470r/notifications.py b/pyaggr3g470r/notifications.py index 8b6ff0c9..1acf782e 100644 --- a/pyaggr3g470r/notifications.py +++ b/pyaggr3g470r/notifications.py @@ -19,7 +19,6 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -from pyaggr3g470r import utils from pyaggr3g470r import conf from pyaggr3g470r import emails @@ -59,13 +58,3 @@ def new_password_notification(user, password): (password, ) plaintext += "\n\nIt is advised to replace it as soon as connected to pyAggr3g470r.\n\nSee you," emails.send(to=user.email, bcc=conf.NOTIFICATION_EMAIL, subject="[pyAggr3g470r] New password", plaintext=plaintext) - -def new_article_notification(user, feed, article): - """ - New article notification. - """ - subject = '[pyAggr3g470r] ' + feed.title + ": " + article.title - html = """\n\n%s\n\n\n%s\n\n""" % \ - (feed.title + ": " + article.title, article.content) - plaintext = utils.clear_string(html) - emails.send(to=user.email, bcc=conf.NOTIFICATION_EMAIL, subject=subject, plaintext=plaintext, html=html) \ No newline at end of file -- cgit