summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-01-21 20:43:16 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-01-21 20:43:16 +0700
commita632a4ccc505876144ae6ca8b3fd68cdf4bdb64a (patch)
tree329eba51d2763df5fcb050b5e07104a67221b595 /src
parent31dcce4812a6aac8dc4980c1c4e392477748a70f (diff)
downloadformbox-a632a4ccc505876144ae6ca8b3fd68cdf4bdb64a.tar.gz
Stop adding spaces to author name 0.4.1
Diffstat (limited to 'src')
-rwxr-xr-xsrc/formbox.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/formbox.py b/src/formbox.py
index 0be3093..3943401 100755
--- a/src/formbox.py
+++ b/src/formbox.py
@@ -75,7 +75,7 @@ def render(template, archive, parent):
         if body is None: continue
         message_id = self['Message-Id']
         # Please don't have space in email addresses
-        author = ' '.join(decode(self['From'])).rsplit(maxsplit=1)[0]
+        author = ''.join(decode(self['From'])).rsplit(maxsplit=1)[0]
         rendered_children = render(template, archive, message_id)
         yield template.format(in_reply_to=quote(parent),
                               message_id=quote(message_id), author=author,