From 5cb66f7a7fe1d00ab521f1f903e7003069c8c70d Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Tue, 22 Nov 2016 10:37:47 -0500 Subject: [PATCH] Email spacing cleanups Signed-off-by: Anna Schumaker --- slackmail.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/slackmail.py b/slackmail.py index c952b12..6c438ce 100644 --- a/slackmail.py +++ b/slackmail.py @@ -8,7 +8,7 @@ import textwrap smtp = smtplib.SMTP("localhost") -reply = "--- Reply above this line ---".ljust(40) +reply = "--- Reply above this line ---" def mail_thread(thread): if not thread.is_member(): @@ -16,12 +16,11 @@ def mail_thread(thread): if (thread.unread_count() == 0) or (thread.unread_count() == None): return - header = ("thread=%s" % thread.id()).rjust(40) - header = "%s%s" % (reply, header) + header = "%s thread=%s" % (reply, thread.id()) text = [ header, "" ] for message in thread.read(): text += [ str(message) ] - text += [ "\n", thread.url(slack.url()) ] + text += [ thread.url(slack.url()) ] print("\n".join(text)) print()