Email spacing cleanups
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
parent
1e767dbfe9
commit
5cb66f7a7f
|
@ -8,7 +8,7 @@ import textwrap
|
||||||
|
|
||||||
|
|
||||||
smtp = smtplib.SMTP("localhost")
|
smtp = smtplib.SMTP("localhost")
|
||||||
reply = "--- Reply above this line ---".ljust(40)
|
reply = "--- Reply above this line ---"
|
||||||
|
|
||||||
def mail_thread(thread):
|
def mail_thread(thread):
|
||||||
if not thread.is_member():
|
if not thread.is_member():
|
||||||
|
@ -16,12 +16,11 @@ def mail_thread(thread):
|
||||||
if (thread.unread_count() == 0) or (thread.unread_count() == None):
|
if (thread.unread_count() == 0) or (thread.unread_count() == None):
|
||||||
return
|
return
|
||||||
|
|
||||||
header = ("thread=%s" % thread.id()).rjust(40)
|
header = "%s thread=%s" % (reply, thread.id())
|
||||||
header = "%s%s" % (reply, header)
|
|
||||||
text = [ header, "" ]
|
text = [ header, "" ]
|
||||||
for message in thread.read():
|
for message in thread.read():
|
||||||
text += [ str(message) ]
|
text += [ str(message) ]
|
||||||
text += [ "\n", thread.url(slack.url()) ]
|
text += [ thread.url(slack.url()) ]
|
||||||
|
|
||||||
print("\n".join(text))
|
print("\n".join(text))
|
||||||
print()
|
print()
|
||||||
|
|
Loading…
Reference in New Issue