[Ilugc] Mailman showing email addresses in the clear

  • From: samjs@xxxxxxx (Samuel)
  • Date: Mon, 8 Jul 2002 16:41:07 +0530

Hi!,

The mailman web management thing Obscures mail so I thought we could use
that function in the archiver as well so....

I did this to Mailman/Archiver/pipermail.py, added

from Mailman import Utils

And used this in class Article on line 178 as

ObscureEmail = Utils.ObscureEmail
self.author, self.email = ObscureEmail(message.getaddr('From'), for_text=1)

 The In-Reply-To header thingy also requires fixing. I'm guessing line 206,
has to become

 self.in_reply_to = ObscureEmail(strip_separators(match.group(1)),
for_text=1)

But I have an uneasy feeling about that...must be the warning given above
that....All this was on Mailman-2.0.12. This was just what I got after
30mins of code reading so it's bound to be wrong, specially since I am not a
python programmer, forgive me and hope this helps.

Regards
Samuel




Other related posts: