mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 09:56:35 +03:00
Rename get_headerdef into get_header_value
This commit is contained in:
@@ -125,7 +125,7 @@ pub fn try_decrypt(
|
||||
) -> Result<(Option<Vec<u8>>, HashSet<String>)> {
|
||||
let from = mail
|
||||
.headers
|
||||
.get_headerdef(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