On 05/20/2018 07:13 AM, Henrique Fagundes wrote: > > Example: I have a list called "clubenaval" and I sent an email to the > list. It appears like this: "Henrique Fagundes via clubenaval", as > pictured in the link below: > http://temporario2.aprendendolinux.com/from.png > > I'd like to remove that. I would like only the name of the sender to > appear, in the case of the example, "Henrique Fagundes".
It is done the way it is in order to not confuse people as the actual address in the From: header is the list posting address, not Henrique Fagundes address. I.e., if the "via clubenaval" were removed, the message would be From: Henrique Fagundes <clubena...@groupos.aprendendolinux.com> making it appear as if <clubena...@groupos.aprendendolinux.com> was Henrique Fagundes actual email address. That said, you can remove the via listname by applying the following change to Mailman/Handlers/CookHeaders.py > --- CookHeaders_2.1.20.py 2018-05-21 09:37:09.018765014 -0700 > +++ CookHeaders_2.1.20_new.py 2018-05-21 09:40:11.899778618 -0700 > @@ -148,7 +148,7 @@ > # Remove domain from realname if it looks like an email address > realname = re.sub(r'@([^ .]+\.)+[^ .]+$', '---', realname) > change_header('From', > - formataddr(('%s via %s' % (realname, mlist.real_name), > + formataddr((realname, > mlist.GetListEmail())), > mlist, msg, msgdata) > else: Also, later versions of Mailman (>=2.1.22) will translate "via" to "por" for pt_BR. (The i18n was added in 2.1.21, but the pt_BR message catalog wasn't updated until 2.1.22) -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org