-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local outbox #5884
Comments
Some things:
|
Save endpoint will remove message from draft mailbox (if possible). |
Some more thoughts:
|
What part of it? As per #5885 we either have to serialize or normalize the data into two tables. |
More the frontend part and the way we offer different attachments in the first place. I am using the localAttachments table for local attachments in the backend. |
@jancborchardt @nimishavijay we found a small issue with this feature. For context, this is the base work for undo sending and scheduled sending. Moreover it will make sending emails more snappy, allow automatic retries when sending fails and also do a large chunk of work that we'll need for the revised draft handling. What we realized is that we do have two options to handle cloud or forwarded attachments of messages that might not be sent immediately.
From a technical PoV we'll have an easier life if we go with 2). But for completeness I wanted to have you in the loop on this design decision. |
If someone is sending an attachment using a cloud file link, then the sender would know that it could be changed by the time the recipient opens it, right? It is expected behavior when you attach, for eg. a link to a Google Doc, so it should be all good. |
I am not talking about share links. It's only about file that get attached. The question is when we should take the copy of the attached file when a message is sent at a later point in time. With 1) we take a copy at the time of the actual sending. With 2) we take a copy at the time of writing. I've updated my post above to reflect that we'd strongly lean towards option 2) because 1) has too many potential side effects and errors to catch. |
@ChristophWurst so Nimisha and I just talked about this and cleared up the confusion, and we agree with option 2. :)
Exactly that ^, so there’s no downside. We think it is a bit confusing that there are 2 separate entries to share stuff from Nextcloud, and we’ll open a separate issue about how to best combine that. |
Feature Request
Instead of sending outgoing messages directly to SMTP and IMAP we should store them in a local outbox and try to push them from there afterwards.
This gives us new abilities
It should be sufficient to have one outbox per user account. We don't need a separate outbox for every Mail account.
Summary
Store messages before sending them to SMTP.
Implementation
Critical bugs and other follow-ups
These chunks do not make an atomic change. Let's use a feature branch for this whole outbox feature where the changes from above are merged into and then one final PR that integrates it back into
main
.The text was updated successfully, but these errors were encountered: