From d3cb933521985d87caf77b7f3cdd4d45bee2b622 Mon Sep 17 00:00:00 2001 From: Ronald Schaten Date: Thu, 21 Mar 2013 21:54:30 +0100 Subject: [PATCH] include feed name into sender address --- atomstrom.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atomstrom.py b/atomstrom.py index 6ba6ceb..dfa67b4 100755 --- a/atomstrom.py +++ b/atomstrom.py @@ -197,6 +197,7 @@ def mail_daily_digest(session, sender, receiver, prefix): subject = '%s (%s) - %d entries' % (today.strftime('%y%m%d'), today.strftime('%A'), count) if prefix != '': subject = '%s %s' % (prefix, subject) + sender = '%s <%s>' % ('Atomstrom', sender) send_mail(sender, receiver, subject, body) for feed, feedinfo, entry in entries: entry.sent = datetime.now() @@ -213,6 +214,7 @@ def mail_single_entry(feed, feedinfo, entry, sender, receiver, prefix): body = '%s\n\n' % get_entry_text(entry) body = body + '%s\n' % feedinfo.link body = body + '%s\n' % link + sender = '%s <%s>' % (feedinfo.title, sender) send_mail(sender, receiver, subject, body) entry.sent = datetime.now()