summaryrefslogtreecommitdiff
path: root/src/mailman/Utils.py
diff options
context:
space:
mode:
authorBarry Warsaw2011-02-25 18:32:31 -0500
committerBarry Warsaw2011-02-25 18:32:31 -0500
commit2503461e8b5e1d184e58e3caaa41ca941b95b91a (patch)
tree674bda2fd1a43f0dc37059f318d90678dcb84320 /src/mailman/Utils.py
parent5ba88a817026f19aa4b3866c4b9bf65e7ea3d016 (diff)
downloadmailman-2503461e8b5e1d184e58e3caaa41ca941b95b91a.tar.gz
mailman-2503461e8b5e1d184e58e3caaa41ca941b95b91a.tar.zst
mailman-2503461e8b5e1d184e58e3caaa41ca941b95b91a.zip
Diffstat (limited to 'src/mailman/Utils.py')
-rw-r--r--src/mailman/Utils.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/mailman/Utils.py b/src/mailman/Utils.py
index 37dcbe5e6..d952a113a 100644
--- a/src/mailman/Utils.py
+++ b/src/mailman/Utils.py
@@ -159,26 +159,6 @@ def nntpsplit(s):
-# Just changing these two functions should be enough to control the way
-# that email address obscuring is handled.
-def ObscureEmail(addr, for_text=False):
- """Make email address unrecognizable to web spiders, but invertable.
-
- When for_text option is set (not default), make a sentence fragment
- instead of a token."""
- if for_text:
- return addr.replace('@', ' at ')
- else:
- return addr.replace('@', '--at--')
-
-def UnobscureEmail(addr):
- """Invert ObscureEmail() conversion."""
- # Contrived to act as an identity operation on already-unobscured
- # emails, so routines expecting obscured ones will accept both.
- return addr.replace('--at--', '@')
-
-
-
class OuterExit(Exception):
pass