# Why not use IMAP for long-term message storage?

**URL:** <https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956>\
**Category:** Uncategorized\
**Created:** [October 20, 2026, 3:02pm UTC](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956 "2026-10-20T15:02:52Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![bleb](https://forum.delta.chat/letter_avatar_proxy/v4/letter/b/c77e96/32.png) [@bleb](https://forum.delta.chat/u/bleb)\
**Post date:** [October 20, 2026, 3:02pm UTC](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956/1 "2026-10-20T15:02:52Z")

</div>

The [FAQ](https://delta.chat/en/help) says:

> Non-chatmail apps use email servers as a long-term message archive while chatmail clients use email servers for ephemeral instant message forwarding.

My understanding is that Delta Chat already uses IMAP to fetch messages, so why not use the server as a long-term message archive? Then the archive on the server could be used to add additional devices or restore from a hardware failure by just providing the IMAP credentials and your private key.

Conversely, if IMAP is only used to get messages from an email server to the device, why use it at all? Doesn’t POP do the same thing much more simply?

---

<div class="post-metadata">

**Author:** ![Raiden](https://forum.delta.chat/user_avatar/forum.delta.chat/raiden/32/2544_2.png) [@Raiden](https://forum.delta.chat/u/Raiden)\
**Post date:** [October 20, 2026, 3:10pm UTC](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956/2 "2026-10-20T15:10:00Z")

</div>

The basic principle is that servers only cache messages; this also helps to save costs. Running chatmail instances is quite cheap. Using POP3 would cause problems when working with multiple devices.

Today IMAP is simply a transport mechanism— but it’s best to just forget about it. Prior to version two, DC was essentially an email client with a chat interface. Now, it is better to view it as a good, decentralized messenger.

---

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ee7513/32.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [October 20, 2026, 3:42pm UTC](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956/3 "2026-10-20T15:42:51Z")

</div>

Delta Chat always used IMAP mailboxes as a “feed”, even in version 1. It downloads every message once and stores it locally. Processing old messages in arbitrary order does not really work because how messages are processed depends on the current state, e.g. whether someone can add new members to a chat depends on whether they are still in the chat.

> [@bleb](#):
>
> Doesn’t POP do the same thing much more simply?

POP3 is not used primarily because it does not support anything like IMAP IDLE extension, so it requires polling the server all the time to check for new messages.

---

<div class="post-metadata">

**Author:** ![bleb](https://forum.delta.chat/letter_avatar_proxy/v4/letter/b/c77e96/32.png) [@bleb](https://forum.delta.chat/u/bleb)\
**Post date:** [October 20, 2026, 3:49pm UTC](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956/4 "2026-10-20T15:49:45Z")

</div>

> [@link2xt](#):
>
> Delta Chat always used IMAP mailboxes as a “feed”, even in version 1. It downloads every message once and stores it locally. Processing old messages in arbitrary order does not really work because how messages are processed depends on the current state, e.g. whether someone can add new members to a chat depends on whether they are still in the chat.

Under what conditions would messages need to be processed in arbitrary order?

---

<div class="post-metadata">

**Author:** ![bleb](https://forum.delta.chat/letter_avatar_proxy/v4/letter/b/c77e96/32.png) [@bleb](https://forum.delta.chat/u/bleb)\
**Post date:** [October 20, 2026, 6:07pm UTC](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956/5 "2026-10-20T18:07:13Z")

</div>

> [@Raiden](#):
>
> Today IMAP is simply a transport mechanism— but it’s best to just forget about it. Prior to version two, DC was essentially an email client with a chat interface. Now, it is better to view it as a good, decentralized messenger.

Was there ever an announcement about this change in direction? I don’t see anything about this in the release notes for version 2:

[https://github.com/chatmail/core/blob/main/CHANGELOG.md#200—2025-07-09](https://github.com/chatmail/core/blob/main/CHANGELOG.md#200---2025-07-09)

Furthermore, the blog post introducing version 2 suggests that classic email usage remains supported:

[https://delta.chat/en/2025-08-04-encryption-v2#classic-email-usage-was-enhanced-but-requires-opt-in](https://delta.chat/en/2025-08-04-encryption-v2#classic-email-usage-was-enhanced-but-requires-opt-in)

---

<div class="post-metadata">

**Author:** ![Raiden](https://forum.delta.chat/user_avatar/forum.delta.chat/raiden/32/2544_2.png) [@Raiden](https://forum.delta.chat/u/Raiden)\
**Post date:** [October 24, 2026, 8:34pm UTC](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956/6 "2026-10-24T20:34:08Z")

</div>

> [@bleb](#):
>
> Furthermore, the blog post introducing version 2 suggests that classic email usage remains supported:

It is still possible to use a standard email account for DC, but not in a mixed setup. So either for chatting with DC or for normal email communication.

---

<div class="post-metadata">

**Author:** ![bleb](https://forum.delta.chat/letter_avatar_proxy/v4/letter/b/c77e96/32.png) [@bleb](https://forum.delta.chat/u/bleb)\
**Post date:** [October 24, 2026, 10:42pm UTC](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956/7 "2026-10-24T22:42:08Z")

</div>

So was there ever an announcement about this change in direction? Because the referenced blog post says classic email usage was “enhanced” whereas this is clearly a regression for classic email users.

---

<div class="post-metadata">

**Author:** ![Raiden](https://forum.delta.chat/user_avatar/forum.delta.chat/raiden/32/2544_2.png) [@Raiden](https://forum.delta.chat/u/Raiden)\
**Post date:** [October 25, 2026, 9:43am UTC](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956/8 "2026-10-25T09:43:35Z")

</div>

Because it is possible to set a subject from this version onwards. Previously, this had to be done via group name.

---

<div class="post-metadata">

**Author:** ![bleb](https://forum.delta.chat/letter_avatar_proxy/v4/letter/b/c77e96/32.png) [@bleb](https://forum.delta.chat/u/bleb)\
**Post date:** [October 25, 2026, 3:25pm UTC](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956/9 "2026-10-25T15:25:30Z")

</div>

I think you might have replied to the wrong thread.

---

<div class="post-metadata">

**Author:** ![Raiden](https://forum.delta.chat/user_avatar/forum.delta.chat/raiden/32/2544_2.png) [@Raiden](https://forum.delta.chat/u/Raiden)\
**Post date:** [October 25, 2026, 3:55pm UTC](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956/10 "2026-10-25T15:55:09Z")

</div>

I replied to this:

> [@bleb](#):
>
> Because the referenced blog post says classic email usage was “enhanced” whereas this is clearly a regression for classic email users.

---

<div class="post-metadata">

**Author:** ![bleb](https://forum.delta.chat/letter_avatar_proxy/v4/letter/b/c77e96/32.png) [@bleb](https://forum.delta.chat/u/bleb)\
**Post date:** [October 25, 2026, 5:45pm UTC](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956/11 "2026-10-25T17:45:38Z")

</div>

Is it acceptable for a project to publicize when a use case is enhanced, but not be as up front about the ways that use case is degraded?

---

<div class="post-metadata">

**Author:** ![Raiden](https://forum.delta.chat/user_avatar/forum.delta.chat/raiden/32/2544_2.png) [@Raiden](https://forum.delta.chat/u/Raiden)\
**Post date:** [October 25, 2026, 7:11pm UTC](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956/12 "2026-10-25T19:11:10Z")

</div>

I think that this should have been communicated more clearly back then. But since then, it’s been explained countless times here in the forum or in the fediverse that mixed usage is no longer supported.

---

<div class="post-metadata">

**Author:** ![bleb](https://forum.delta.chat/letter_avatar_proxy/v4/letter/b/c77e96/32.png) [@bleb](https://forum.delta.chat/u/bleb)\
**Post date:** [October 26, 2026, 1:06am UTC](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956/13 "2026-10-26T01:06:43Z")

</div>

Do any of those countless times raise to the level of an official announcement?

Is there any indication that communication will be better the next time support is removed for a use case?

---

<div class="post-metadata">

**Author:** ![bleb](https://forum.delta.chat/letter_avatar_proxy/v4/letter/b/c77e96/32.png) [@bleb](https://forum.delta.chat/u/bleb)\
**Post date:** [November 5, 2026, 6:27pm UTC](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956/14 "2026-11-05T18:27:47Z")

</div>

Following up here because I was tinkering with my Delta Chat database and I think I messed up and deleted some messages which should still be saved in my IMAP mailbox. I understand that IMAP for long-term archiving is not “supported,” but is there any way to trick Delta Chat into re-downloading messages from IMAP?

Alternatively, what would be the steps for decrypting those messages that are still sitting in my mailbox?

---

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ee7513/32.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [November 5, 2026, 6:54pm UTC](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956/15 "2026-11-05T18:54:26Z")

</div>

> [@bleb](#):
>
> I understand that IMAP for long-term archiving is not “supported,” but is there any way to trick Delta Chat into re-downloading messages from IMAP?

If you are editing the database manually anyway, you can rewind `imap_sync.uid_next` to `1` and Delta Chat will redownload all messages from the inbox. It will detect duplicates, so already downloaded messages will not appear twice.

Alternatively, create a folder on the server, copy or move all messages there, then move them back. They will get new UIDs and will be downloaded:

> [@\[WORKAROUND\] Make new Delta Chat installation import old messages from IMAP directory](https://forum.delta.chat/t/workaround-make-new-delta-chat-installation-import-old-messages-from-imap-directory/262/5):
>
> Workaround I realized that there is a workaround and right now I can’t see any problems with it. What I did to import the old messages lying around in the DeltaChat directory in my mail was this: Create a directory and call it anything, like “e-mail parking”. Move all your mails in your inbox over to that directory. Move all your mails in the DeltaChat directory into your inbox. Delta Chat (on Android and Desktop at least) notices these messages and they appear in the client. Move back these m…

---

<div class="post-metadata">

**Author:** ![bleb](https://forum.delta.chat/letter_avatar_proxy/v4/letter/b/c77e96/32.png) [@bleb](https://forum.delta.chat/u/bleb)\
**Post date:** [November 5, 2026, 8:42pm UTC](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956/16 "2026-11-05T20:42:48Z")

</div>

Perfect, thanks. And here’s the command line I came up with for future convenience:

```
sqlite3 dc.db "UPDATE imap_sync SET uid_next=1;"

```

(In my Flatpak installation, dc.db is under `~/.var/app/chat.delta.desktop/config/DeltaChat/accounts/96e4218d-dc83-4406-a9a2-e2db7d37fb2e`.)

BTW could you clarify what you meant [here](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956/4)? I was trying to see how this would be a reason not to use IMAP for long-term message storage but maybe that’s not how you meant it.

---

<div class="post-metadata">

**Author:** ![Low](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ecae2f/32.png) [@Low](https://forum.delta.chat/u/Low)\
**Post date:** [November 9, 2026, 5:23pm UTC](https://forum.delta.chat/t/why-not-use-imap-for-long-term-message-storage/5956/17 "2026-11-09T17:23:04Z")

</div>

The best of both worlds would probably be a backup service of some kind similar to Signal.

Delta Chat being fundamentally ephemeral can result in several situations that fan be very sad and hurtful for users.

> [@Backup service concept](https://forum.delta.chat/t/backup-service-concept/5542/):
>
> Some context: For the past month I have been using Delta Chat extensively while traveling abroad with my family. This is our first experience with Delta Chat and I am very impressed. We are using it across multiple device OSs (Android, iOS iPad and iPhone, Linux) and highly dynamic networks. We have used it to call each other, video chat, share live locations to rendezvous, and share photos and important files during our activities. As someone who has been experimenting with and contributing to …
