summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--b4/pr.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/b4/pr.py b/b4/pr.py
index 04feeae..86d039c 100644
--- a/b4/pr.py
+++ b/b4/pr.py
@@ -298,6 +298,8 @@ def explode(gitdir, lmsg, mailfrom=None, retrieve_links=True, fpopts=None):
allcc.append(fromaddr)
if realname:
# Use "Name via Foo" notation
+ if mailfrom.find('@') > 0 > mailfrom.find('<'):
+ mailfrom = f'<{mailfrom}>'
mailfrom = f'{realname} via {mailfrom}'
config = b4.get_main_config()