include feed name into sender address
This commit is contained in:
parent
1f4a69de18
commit
d3cb933521
@ -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)
|
subject = '%s (%s) - %d entries' % (today.strftime('%y%m%d'), today.strftime('%A'), count)
|
||||||
if prefix != '':
|
if prefix != '':
|
||||||
subject = '%s %s' % (prefix, subject)
|
subject = '%s %s' % (prefix, subject)
|
||||||
|
sender = '%s <%s>' % ('Atomstrom', sender)
|
||||||
send_mail(sender, receiver, subject, body)
|
send_mail(sender, receiver, subject, body)
|
||||||
for feed, feedinfo, entry in entries:
|
for feed, feedinfo, entry in entries:
|
||||||
entry.sent = datetime.now()
|
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 = '%s\n\n' % get_entry_text(entry)
|
||||||
body = body + '%s\n' % feedinfo.link
|
body = body + '%s\n' % feedinfo.link
|
||||||
body = body + '%s\n' % link
|
body = body + '%s\n' % link
|
||||||
|
sender = '%s <%s>' % (feedinfo.title, sender)
|
||||||
send_mail(sender, receiver, subject, body)
|
send_mail(sender, receiver, subject, body)
|
||||||
entry.sent = datetime.now()
|
entry.sent = datetime.now()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user