summaryrefslogtreecommitdiff
path: root/Mailman/htmlformat.py
diff options
context:
space:
mode:
authorbwarsaw2002-02-23 07:00:17 +0000
committerbwarsaw2002-02-23 07:00:17 +0000
commit424c1dffc1e358a8b0da22b87d541a593907b7da (patch)
tree49c0825d2d27db98ce9315540bd49e5e28de2575 /Mailman/htmlformat.py
parentb227bb359e7cc19640ff3b8ef07298cdfed3398a (diff)
downloadmailman-424c1dffc1e358a8b0da22b87d541a593907b7da.tar.gz
mailman-424c1dffc1e358a8b0da22b87d541a593907b7da.tar.zst
mailman-424c1dffc1e358a8b0da22b87d541a593907b7da.zip
WHITESPACE -> whitespace everywhere.
ValidateEmail(): Add Dan Mick's suggestion to throw out email addresses with embedded spaces in the (although the calculation of such is done a bit differently). This may not be a complete solution because any address that's first sent through email.Utils.parseaddr() will have embedded spaces collapsed anyway by rfc822.py's similarly named function. That latter is a bug that needs to be fixed in Python, but that's not a high priority right now. Also note that "this is an email address"@dom.ain is (probably) legal and is handled correctly by parseaddr() but will still be rejected by ValidateEmail(). I think that's fine, as anybody who's got embedded spaces in their address is probably going to have a miserable life anyway. to_dollar(), to_percent(), dollar_identifiers(), percent_identifiers(): New functions to support experimental $-string substitutions, and conversions between %-strings and $-strings.
Diffstat (limited to 'Mailman/htmlformat.py')
0 files changed, 0 insertions, 0 deletions