diff --git a/atomstrom.conf.sample b/atomstrom.conf.sample index 47ecfe0..dfed8c7 100644 --- a/atomstrom.conf.sample +++ b/atomstrom.conf.sample @@ -6,7 +6,7 @@ hostname = localhost database = atomstrom [email] -sender = dummy@dummy.invalid +sender = Atomstrom receiver = dummy@dummy.invalid prefix_single = [as] prefix_digest = [atomstrom] diff --git a/atomstrom.py b/atomstrom.py index cad04e6..4f98b36 100755 --- a/atomstrom.py +++ b/atomstrom.py @@ -162,9 +162,8 @@ def mail_daily_digest(session, sender, receiver, prefix): count = count + 1 body = body + '=> %s - %s\n' % (entry.updated.strftime('%y%m%d-%H%M'), feedinfo.title) body = body + ' %s\n' % entry.title - body = body + get_entry_text(entry)[0:100] - body = body + '\n' - body = body + 'link: [%s]\n\n' % entry.link + body = body + '%s\n' % get_entry_text(entry)[0:100] + body = body + '%s\n\n' % entry.link today = datetime.now() subject = '%s (%s) - %d entries' % (today.strftime('%y%m%d'), today.strftime('%A'), count) if prefix != '': @@ -175,10 +174,9 @@ def mail_single_entry(feed, feedinfo, entry, sender, receiver, prefix): subject = '%s' % (entry.title) if prefix != '': subject = '%s %s' % (prefix, subject) - body = get_entry_text(entry) - body = body + '\n\n' - body = body + 'site: [%s]\n' % feedinfo.link - body = body + 'link: [%s]\n' % entry.link + body = '%s\n\n' % get_entry_text(entry) + body = body + '%s\n' % feedinfo.link + body = body + '%s\n' % entry.link send_mail(sender, receiver, subject, body) def mail_single_entries(session, sender, receiver, prefix):