Remove _safe suffix from dc_decode_header function

There is no longer unsafe version of this function, so suffix is
useless now.
This commit is contained in:
Dmitry Bogatov
2019-09-28 19:38:06 +00:00
committed by holger krekel
parent 618abd63cf
commit 0beadde758
3 changed files with 10 additions and 13 deletions

View File

@@ -127,7 +127,7 @@ impl<'a> MimeParser<'a> {
if (*field).fld_type == MAILIMF_FIELD_SUBJECT as libc::c_int {
let subj = (*(*field).fld_data.fld_subject).sbj_value;
self.subject = as_opt_str(subj).map(dc_decode_header_words_safe);
self.subject = as_opt_str(subj).map(dc_decode_header_words);
}
}
@@ -704,7 +704,7 @@ impl<'a> MimeParser<'a> {
// might be a wrongly encoded filename
let s = to_string_lossy((*dsp_param).pa_data.pa_filename);
// this is used only if the parts buffer stays empty
desired_filename = dc_decode_header_words_safe(&s)
desired_filename = dc_decode_header_words(&s)
}
}
}