Skip to content

Use IMAP APPEND command to upload sync messages with \Seen flag #5845

@link2xt

Description

@link2xt

APPEND command allows to pass the list of flags, so \Seen flag can be set immediately. We should do this at least for sync messages.

I also thought about doing this for all messages which don't have other recipients, e.g. messages sent to Saved messages and to groups which don't have any members other than self, but this may result in taking over IMAP connection to upload a very large message with a video and unexpected reordering (currently messages are always sent out in the order they are added into SMTP queue), so better not do it at least for this issue.

Forum discussion is at https://support.delta.chat/t/encrypted-attachments-in-regular-email/2962

There is a related PR for moving sync messages to DeltaChat folder: #5755 With IMAP we can even upload directly to DeltaChat.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions