mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 21:36:29 +03:00
target comments of @hpk42 and @flub
This commit is contained in:
committed by
holger krekel
parent
5709681076
commit
832df41130
@@ -127,12 +127,7 @@ impl<'a> MimeParser<'a> {
|
||||
if let Some(field) = self.lookup_field("Subject") {
|
||||
if (*field).fld_type == MAILIMF_FIELD_SUBJECT as libc::c_int {
|
||||
let subj = (*(*field).fld_data.fld_subject).sbj_value;
|
||||
let subj = to_opt_string_lossy(subj);
|
||||
self.subject = if subj.is_some() {
|
||||
Some(dc_decode_header_words(&subj.unwrap()))
|
||||
} else {
|
||||
None
|
||||
};
|
||||
self.subject = to_opt_string_lossy(subj).map(|x| dc_decode_header_words(&x));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user