Rename get_headerdef into get_header_value

This commit is contained in:
Alexander Krotov
2020-02-11 01:23:31 +03:00
parent c801775a39
commit 66fdb447f7
5 changed files with 24 additions and 19 deletions

View File

@@ -75,7 +75,7 @@ impl Aheader {
wanted_from: &str,
headers: &[mailparse::MailHeader<'_>],
) -> Option<Self> {
if let Ok(Some(value)) = headers.get_headerdef(HeaderDef::Autocrypt) {
if let Ok(Some(value)) = headers.get_header_value(HeaderDef::Autocrypt) {
match Self::from_str(&value) {
Ok(header) => {
if addr_cmp(&header.addr, wanted_from) {