mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 06:56:29 +03:00
Update mailparse to 0.12
This commit is contained in:
committed by
holger krekel
parent
958802a233
commit
d78ea882c8
@@ -126,7 +126,7 @@ pub fn try_decrypt(
|
||||
) -> Result<(Option<Vec<u8>>, HashSet<String>)> {
|
||||
let from = mail
|
||||
.headers
|
||||
.get_header_value(HeaderDef::From_)?
|
||||
.get_header_value(HeaderDef::From_)
|
||||
.and_then(|from_addr| mailparse::addrparse(&from_addr).ok())
|
||||
.and_then(|from| from.extract_single_info())
|
||||
.map(|from| from.addr)
|
||||
|
||||
Reference in New Issue
Block a user