From 710db2ba0af9b2226a06e7b711f7550df74e4af5 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Mon, 7 Oct 2019 00:43:43 +0200 Subject: [PATCH] remove scanning for old Chat-Predecessor header the Chat-Predecessor header was dropped about 10 month ago. as a replacement, the standard headers are used. --- src/dc_receive_imf.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/dc_receive_imf.rs b/src/dc_receive_imf.rs index 043dd2dbc..0c5672e4a 100644 --- a/src/dc_receive_imf.rs +++ b/src/dc_receive_imf.rs @@ -1686,13 +1686,7 @@ fn set_better_msg(mime_parser: &mut MimeParser, better_msg: impl AsRef) { unsafe fn dc_is_reply_to_known_message(context: &Context, mime_parser: &MimeParser) -> libc::c_int { /* check if the message is a reply to a known message; the replies are identified by the Message-ID from - `In-Reply-To`/`References:` (to support non-Delta-Clients) or from `Chat-Predecessor:` (Delta clients, see comment in dc_chat.c) */ - if let Some(optional_field) = mime_parser.lookup_optional_field("Chat-Predecessor") { - let optional_field_c = CString::new(optional_field).unwrap_or_default(); - if 0 != is_known_rfc724_mid(context, optional_field_c.as_ptr()) { - return 1; - } - } + `In-Reply-To`/`References:` (to support non-Delta-Clients) */ if let Some(field) = mime_parser.lookup_field("In-Reply-To") { if (*field).fld_type == MAILIMF_FIELD_IN_REPLY_TO as libc::c_int {