Update of /cvsroot/mailman/mailman/Mailman/Archiver
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7071

Modified Files:
        HyperArch.py 
Log Message:
Obscure email when the poster doesn't set full name in From:.


Index: HyperArch.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Archiver/HyperArch.py,v
retrieving revision 2.43
retrieving revision 2.44
diff -u -d -r2.43 -r2.44
--- HyperArch.py        28 Aug 2005 05:31:26 -0000      2.43
+++ HyperArch.py        19 Sep 2005 12:31:02 -0000      2.44
@@ -278,7 +278,11 @@
             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)
 

_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to