refactor: do not treat messages without headers as a special case

This commit is contained in:
link2xt
2023-06-09 22:29:44 +00:00
parent d538d29b94
commit 5659c1b9c2
2 changed files with 0 additions and 10 deletions

View File

@@ -776,10 +776,6 @@ impl MimeMessage {
self.headers.contains_key("chat-version")
}
pub(crate) fn has_headers(&self) -> bool {
!self.headers.is_empty()
}
pub(crate) fn get_subject(&self) -> Option<String> {
self.get_header(HeaderDef::Subject)
.filter(|s| !s.is_empty())