aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/notifications.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-25 23:18:55 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-25 23:18:55 +0100
commitd6b34ceb21951d97fd978e66d03459749d6dea6e (patch)
treebacd9f9028ef07beb75aadeb57a8fb2aae849d7d /pyaggr3g470r/notifications.py
parentRelease 6.1. Updated NEWS.rst (diff)
downloadnewspipe-d6b34ceb21951d97fd978e66d03459749d6dea6e.tar.gz
newspipe-d6b34ceb21951d97fd978e66d03459749d6dea6e.tar.bz2
newspipe-d6b34ceb21951d97fd978e66d03459749d6dea6e.zip
Removed the functionality for the email notifications of new articles. No real added value.
Diffstat (limited to 'pyaggr3g470r/notifications.py')
-rw-r--r--pyaggr3g470r/notifications.py11
1 files changed, 0 insertions, 11 deletions
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 <http://www.gnu.org/licenses/>.
-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 = """<html>\n<head>\n<title>%s</title>\n</head>\n<body>\n%s\n</body>\n</html>""" % \
- (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
bgstack15