[Mailman-Users] Doubts with Mailman + DMARC + Option "Munge From"

Henrique Fagundes suporte at aprendendolinux.com
Mon May 21 13:35:24 EDT 2018


Dear friend,

Thank you!

I have edited the file "/usr/lib/mailman/Mailman/Handler/CookHeaders.py" 
and replace "formataddr (('% s via% s'% (realname, mlist.real_name)" 
with "formataddr (('% s '% (realname)'.

This solved my problem and left the tool working the way I wanted it to.

Thank you very much.
I posted this doubt in several forums here in Brazil and no one knew how 
to respond.

Once again I apologize if my text is too difficult to understand. I do 
not have many English language skills.

Regards,

Henrique Fagundes
Linux Support Analyst
suporte at aprendendolinux.com
Skype: magnata-br-rj
Linux User: 475399

https://www.aprendendolinux.com
https://www.facebook.com/AprendendoLinux
https://youtube.com/AprendendoLinux
https://twitter.com/AprendendoLinux
https://telegram.me/AprendendoLinux
______________________________________________________________________
Participe do Grupo Aprendendo Linux
https://groups.google.com/forum/#!forum/portal-aprendendo-linux

Ou envie um e-mail para:
portal-aprendendo-linux+subscribe at googlegroups.com

Em 21/05/2018 14:01, Mark Sapiro escreveu:
> 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 <clubenaval at groupos.aprendendolinux.com>
> 
> making it appear as if <clubenaval at 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)
> 



More information about the Mailman-Users mailing list