質問

I'm developing an RFC 2822 address parser (not a validator), and was wondering if anyone knew of a good list of test cases that exercises corner cases that might crop up? The specification of the address format is quite complex, and I'm not convinced I understand it fully enough to be certain of identifying all of the odd cases that could crop up.

For the sake of clarity, I'm talking about addresses as they might appear in header lines, so stuff like comments in odd places is the kind of issue I'm thinking about.

役に立ちましたか?

解決

I found this during my quest for the same:

http://isemail.info/_system/is_email/test/?all

Hope this helps.

他のヒント

I had found a blog post over on the MSDN blogs that provides a few test cases specific to RFC2822. I'm not certain it is the definitive list of test cases, but it might be a good starting point.

Email Address test cases

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top