aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
authortkikuchi <>2005-10-23 06:40:10 +0000
committertkikuchi <>2005-10-23 06:40:10 +0000
commit080fe137caa03092ac80cad2c252d63f141e544a (patch)
treedbe7afa1ccfd25ea68886ee8a33ee2ece046bcb0 /Mailman
parent526ca389ee0f95c07624542eda0dbbd543fa6af7 (diff)
downloadmailman2-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')
-rw-r--r--Mailman/Archiver/HyperArch.py6
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)