aboutsummaryrefslogtreecommitdiff
path: root/b4/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'b4/__init__.py')
-rw-r--r--b4/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index a49f439..d432ab1 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -643,6 +643,8 @@ class LoreMessage:
fromdata = email.utils.getaddresses([str(x) for x in self.msg.get_all('from', [])])[0]
self.fromname = fromdata[0]
self.fromemail = fromdata[1]
+ if not len(self.fromname.strip()):
+ self.fromname = self.fromemail
except IndexError:
pass