# Delta Chat was deleting non-DC messages

**URL:** <https://forum.delta.chat/t/delta-chat-was-deleting-non-dc-messages/2103>\
**Category:** Mutual Help\
**Tags:** android\
**Created:** [May 28, 2022, 3:46pm UTC](https://forum.delta.chat/t/delta-chat-was-deleting-non-dc-messages/2103 "2022-05-28T15:46:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gessel](https://forum.delta.chat/user_avatar/forum.delta.chat/gessel/32/1147_2.png) [@gessel](https://forum.delta.chat/u/gessel)\
**Post date:** [May 28, 2022, 3:46pm UTC](https://forum.delta.chat/t/delta-chat-was-deleting-non-dc-messages/2103/1 "2022-05-28T15:46:55Z")

</div>

**Delta Chat version 1.28.1**

**Expected behavior**

No messages deleted at all, not sure why any would be.

**Actual behavior**

systematic deletion of certain emails - not random, not all but I’m not sure what the selection criterion were.

DC would delete a daily system summary email in my inbox, delete zabbix trouble reports on a similar topic from a another folder, delete all the camera generated alerts (via a different sendmail host) from a third.

Note this was not a “move” operation, it was a “delete” operation per Dovecot logs

```auto
:Info: delete: box=

```

Deleting Delta Chat resolved the issue.

I’m willing to risk reinstalling it to pull debug logs, the messages being deleted happened to fall into “annoyance” rather than “catastrophe” status, but as I’m not sure how I got lucky with a rather minimal delete operation, I’m a bit concerned about reinstalling.

Could this be an artifact of disappearing messages or something? What configurations might lead to a “delete” request?

---

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/user_avatar/forum.delta.chat/link2xt/32/1971_2.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [May 28, 2022, 8:04pm UTC](https://forum.delta.chat/t/delta-chat-was-deleting-non-dc-messages/2103/2 "2022-05-28T20:04:58Z")

</div>

This likely happened to messages without `Message-ID` as they were treated as duplicates: [Some e-mails are deleted · Issue #3094 · deltachat/deltachat-core-rust · GitHub](https://github.com/deltachat/deltachat-core-rust/issues/3094)

The bug was fixed in core 1.77.0. Delta Chat Android has this fix in versions \>= v1.30.0.

We have got rid of duplicate detection completely because it caused problems also in cases when user manually copied or moved messages:

> <https://github.com/deltachat/deltachat-core-rust/pull/3138>
>
> Currently if user moves the message into some other folder and then
> moves the m…essage back, the message is considered duplicate even
> though previous copy was already deleted. This is a common problem
> reported by users at least twice.
> 
> Keeping duplicates does no harm except for additional storage usage.
> If the message is later deleted by the user, all the copies on the
> server will be deleted. anyway.
> 
> Fixes #3130

---

<div class="post-metadata">

**Author:** ![gessel](https://forum.delta.chat/user_avatar/forum.delta.chat/gessel/32/1147_2.png) [@gessel](https://forum.delta.chat/u/gessel)\
**Post date:** [May 29, 2022, 8:19am UTC](https://forum.delta.chat/t/delta-chat-was-deleting-non-dc-messages/2103/3 "2022-05-29T08:19:44Z")

</div>

Um… OMG. so that _was_ catastrophic, but thanks for the heads up. I connected this app to a mailstore with a few decades of mail. With the benefit of the warning that any message without a MESSAGE-ID header might have been deleted, I see it deleted possibly 100’s of thousands of critical historical messages back to the late 1990s. I’ll see what I can do from backups… that’s easily days worth of recovery.

Do you know when this catastrophic bug was introduced? Was it with 1.28.1 or earlier?

Just a bit of advice. NEVER EVER EVER perform an irreversible action on a mail store without explicit, per message confirmation. This is a very painful lesson. Ouch.

---

<div class="post-metadata">

**Author:** ![gessel](https://forum.delta.chat/user_avatar/forum.delta.chat/gessel/32/1147_2.png) [@gessel](https://forum.delta.chat/u/gessel)\
**Post date:** [May 29, 2022, 8:25am UTC](https://forum.delta.chat/t/delta-chat-was-deleting-non-dc-messages/2103/4 "2022-05-29T08:25:10Z")

</div>

It appears I first installed Delta-Chat around 2021-05-30, that’s a year of lost messages which are probably non-recoverable by any means, but please let us know when the “delete your old mail without notification or asking” bug was introduced so I know how far back to dig for backups. I’m very annoyed, I had a local IMAP store that wasn’t modified from 2019 to Jan 2020 that would have had the old records, but will have since synchronized the deletion Armageddon.

---

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/user_avatar/forum.delta.chat/link2xt/32/1971_2.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [May 29, 2022, 9:48am UTC](https://forum.delta.chat/t/delta-chat-was-deleting-non-dc-messages/2103/5 "2022-05-29T09:48:52Z")

</div>

It was introduced in core 1.71.0, so the bug was present starting from Android version 1.27.0 and until 1.30.0. If you only installed non-beta versions with even version numbers, this means the bug was only in 1.28.x versions, released in January of 2022.

The bug only affects new messages, archived messages that you received before are not affected. Delta Chat only downloads last 100 messages when you configure new account and starting from that point makes decision only on new messages.

---

<div class="post-metadata">

**Author:** ![gessel](https://forum.delta.chat/user_avatar/forum.delta.chat/gessel/32/1147_2.png) [@gessel](https://forum.delta.chat/u/gessel)\
**Post date:** [May 29, 2022, 11:18am UTC](https://forum.delta.chat/t/delta-chat-was-deleting-non-dc-messages/2103/6 "2022-05-29T11:18:02Z")

</div>

that’s helpful - if we trust that filter worked (and I don’t have any reason to doubt it) then only messages from 2022-03-08 to present might have been subject to silent and arbitrary deletion. I have a full mailbox backup from 2020-05 and from 2021-08, the former from before installing delta chat at all, the latter from before 1.27.0. If I find any evidence of older mail being deleted, I’ll report it as it might help others who also suffered mail destruction.

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [October 6, 2026, 3:04pm UTC](https://forum.delta.chat/t/delta-chat-was-deleting-non-dc-messages/2103/7 "2026-10-06T15:04:20Z")

</div>


