[Nottingham] emails containing spaces
Nick Leverton
nick at leverton.org
Tue Oct 16 19:29:53 UTC 2012
On Tue, Oct 16, 2012 at 07:38:13PM +0100, TJ wrote:
> thanks for the answers guy's just means i'll have to tell our marketing
> that if the e-mail contains spaces it's probably wrong ;P
Are you validating fields entered in a web page ? In that case it's
probably relatively (hah!) easy as you can assume it's already in
mailbox format (e.g. a at b instead of "Foo!Bar" <a at b> or a at b (Foo!Bar)),
and don't have to handle most of the encoding, escaping and embedded
comment handling that the RFCs go into great lengths about. Also things
like mail groups that can crop up in headers are not likely to appear.
Nick
More information about the Nottingham
mailing list