niax / rust-email

Implementation of MIME Messages for Rust
MIT License
63 stars 34 forks source link

"user@ email address should fail parsing, not panic #52

Closed jlevon closed 5 years ago

jlevon commented 5 years ago

I happened across this issue where "user@" panics the parser instead of returning None. Obviously the test added here is a long way off complete, but at least it catches this case.