summaryrefslogtreecommitdiff
path: root/Mailman/pythonlib/getpass.py
diff options
context:
space:
mode:
authorbwarsaw1999-01-09 05:13:00 +0000
committerbwarsaw1999-01-09 05:13:00 +0000
commit3a96ce474c415706e47c6a8bb70faebb18dd591c (patch)
treeafddc1af30750ffe11f58e5489e65901b1e51be9 /Mailman/pythonlib/getpass.py
parentd6e0cc43c3ac987c88298b0a17e847eeea5db5d9 (diff)
downloadmailman-3a96ce474c415706e47c6a8bb70faebb18dd591c.tar.gz
mailman-3a96ce474c415706e47c6a8bb70faebb18dd591c.tar.zst
mailman-3a96ce474c415706e47c6a8bb70faebb18dd591c.zip
ValidateEmail(): Renamed from ValidEmail().
Cleaned up its interface so that it always raises an exception if an address problem is uncovered (it used to both raise exceptions and return 0 or 1). It now has no useful return value. Added a re to barf on other unacceptable characters in an email address, currently: [ ] ( ) < > | ; Should there be others? The test that were there are retained, but the domain_parts test was cleaned up (there was a redundant test in there). Note that now unqualified addresses (e.g. those that don't contain an `@' are now DISALLOWED). This goes partially toward Greg Stein's suggestion.
Diffstat (limited to 'Mailman/pythonlib/getpass.py')
0 files changed, 0 insertions, 0 deletions