mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 06:16:30 +03:00
Update mailparse to 0.10.2
It does not allow parsing emails without @
This commit is contained in:
@@ -1142,13 +1142,8 @@ mod tests {
|
||||
let of = mimeparser.parse_first_addr(HeaderDef::From_).unwrap();
|
||||
assert_eq!(of, mailparse::addrparse("hello@one.org").unwrap()[0]);
|
||||
|
||||
// XXX: the address does not contain "@", so it is wrong
|
||||
// addr-spec according to RFC 2822, but mailparse still parses
|
||||
// is as an address.
|
||||
let of = mimeparser
|
||||
.parse_first_addr(HeaderDef::ChatDispositionNotificationTo)
|
||||
.unwrap();
|
||||
assert_eq!(of, mailparse::addrparse("wrong").unwrap()[0]);
|
||||
let of = mimeparser.parse_first_addr(HeaderDef::ChatDispositionNotificationTo);
|
||||
assert!(of.is_none());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user