mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 10:56:29 +03:00
refactor: do not treat messages without headers as a special case
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user