changeset 3920:de8ffca86cc9

PageEditor: EMAIL var uses sendmail.encodeSpamSafeEmail
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 03 Aug 2008 21:37:47 +0200
parents 87c6a9ad850f
children a59685636e28
files MoinMoin/PageEditor.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/PageEditor.py	Sun Aug 03 21:36:17 2008 +0200
+++ b/MoinMoin/PageEditor.py	Sun Aug 03 21:37:47 2008 +0200
@@ -24,6 +24,7 @@
 from MoinMoin.widget import html
 from MoinMoin.widget.dialog import Status
 from MoinMoin.logfile import editlog, eventlog
+from MoinMoin.mail.sendmail import encodeSpamSafeEmail
 from MoinMoin.support.python_compatibility import set
 from MoinMoin.util import filesys, timefuncs, web
 from MoinMoin.events import PageDeletedEvent, PageRenamedEvent, PageCopiedEvent, PageRevertedEvent
@@ -764,7 +765,7 @@
         request = self.request
         now = self._get_local_timestamp()
         u = request.user
-        obfuscate_email_address = u.email.lower().replace('@', ' AT ').replace('.', ' DOT ')
+        obfuscate_email_address = encodeSpamSafeEmail(u.email)
         signature = u.signature()
         variables = {
             'PAGE': self.page_name,