test and fix buggy parsing of incoming message which would show MDNs as empty incoming messages

This commit is contained in:
holger krekel
2020-05-24 15:22:55 +02:00
parent a068b82671
commit 7f4627356b
3 changed files with 12 additions and 10 deletions

View File

@@ -656,10 +656,10 @@ async fn add_parts(
.sql
.with_conn(move |mut conn| {
let mut ids = Vec::with_capacity(parts.len());
let mut is_hidden = is_hidden;
for part in &mut parts {
let mut txt_raw = "".to_string();
let mut is_hidden = is_hidden;
let mut stmt = conn.prepare_cached(
"INSERT INTO msgs \
(rfc724_mid, server_folder, server_uid, chat_id, from_id, to_id, timestamp, \