Use forked version of async-imap and imap-proto

This attempts to fix fetching when the inbox contains mail with non-utf8 subjects.
This commit is contained in:
Alexander Krotov
2019-11-23 20:58:20 +03:00
committed by holger krekel
parent 76de8f55f2
commit 6412adcfa7
4 changed files with 28 additions and 18 deletions

View File

@@ -799,9 +799,12 @@ unsafe fn handle_reports(
&& !of_org_msgid.is_null()
&& !(*of_org_msgid).fld_value.is_null()
{
if let Ok(rfc724_mid) = wrapmime::parse_message_id(
&to_string_lossy((*of_org_msgid).fld_value),
) {
if let Ok(rfc724_mid) =
wrapmime::parse_message_id(std::slice::from_raw_parts(
(*of_org_msgid).fld_value as *const u8,
libc::strlen((*of_org_msgid).fld_value),
))
{
if let Some((chat_id, msg_id)) = message::mdn_from_ext(
context,
from_id,