From e2626e1dcadb2a13361d62541615c926e6002315 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 5 Nov 2020 00:51:22 +0100 Subject: [PATCH] remail: Fix the from mangling The comment in mangle_from() says that if there is not a real name then the email address is mangled by replacing @ with _at_. The comment is great just the implementation is not doing so. Add the replacement functionality. Signed-off-by: Thomas Gleixner --- remail/maillist.py | 1 + 1 file changed, 1 insertion(+) diff --git a/remail/maillist.py b/remail/maillist.py index faf658e..048dbef 100644 --- a/remail/maillist.py +++ b/remail/maillist.py @@ -233,6 +233,7 @@ class maillist(object): If $ORIGINAL_FROM does not contain a name, mangle the email address by replacing @ with _at_ ''' + mfrom = mfrom.replace('@','_at_') return '%s for %s <%s>' % (self.config.name, mfrom, self.config.listaddrs.post)