From 080fe137caa03092ac80cad2c252d63f141e544a Mon Sep 17 00:00:00 2001 From: tkikuchi <> Date: Sun, 23 Oct 2005 06:40:10 +0000 Subject: Obscure email when the poster doesn't set full name in From:. --- Mailman/Archiver/HyperArch.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Mailman/Archiver/HyperArch.py') diff --git a/Mailman/Archiver/HyperArch.py b/Mailman/Archiver/HyperArch.py index c0695f51..0440dc6d 100644 --- a/Mailman/Archiver/HyperArch.py +++ b/Mailman/Archiver/HyperArch.py @@ -278,7 +278,11 @@ class Article(pipermail.Article): otrans = i18n.get_translation() try: i18n.set_language(lang) - self.email = re.sub('@', _(' at '), self.email) + if self.author == self.email: + self.author = self.email = re.sub('@', _(' at '), + self.email) + else: + self.email = re.sub('@', _(' at '), self.email) finally: i18n.set_translation(otrans) -- cgit v1.2.3