include feed name into sender address

This commit is contained in:
Ronald Schaten 2013-03-21 21:54:30 +01:00
parent 1f4a69de18
commit d3cb933521

View File

@ -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()