diff options
author | tkikuchi <> | 2005-10-23 06:40:10 +0000 |
---|---|---|
committer | tkikuchi <> | 2005-10-23 06:40:10 +0000 |
commit | 080fe137caa03092ac80cad2c252d63f141e544a (patch) | |
tree | dbe7afa1ccfd25ea68886ee8a33ee2ece046bcb0 /Mailman/Archiver/HyperArch.py | |
parent | 526ca389ee0f95c07624542eda0dbbd543fa6af7 (diff) | |
download | mailman2-080fe137caa03092ac80cad2c252d63f141e544a.tar.gz mailman2-080fe137caa03092ac80cad2c252d63f141e544a.tar.xz mailman2-080fe137caa03092ac80cad2c252d63f141e544a.zip |
Obscure email when the poster doesn't set full name in From:.
Diffstat (limited to 'Mailman/Archiver/HyperArch.py')
-rw-r--r-- | Mailman/Archiver/HyperArch.py | 6 |
1 files changed, 5 insertions, 1 deletions
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) |