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?
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.
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.
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.
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.
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.
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.
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?
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:
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? 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.