-
Notifications
You must be signed in to change notification settings - Fork 19
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
As a user I want have a validation before sending the request, or at least manage (display a nice error message) when size is exceeded. #537
Comments
Jmap rfc-8620 allow knowing max supported email size. Frontend can try detecting when this limit is exceeded. Like "sum attachment > max size". And the say " mail too big, please consider other means to share tgese files". However it's not exact science as it do not account for base64 encoding, text bodies, headers, mime stuff, etc. Thus more importantly the underlying JMAP exception needs to be handled. Composer reopened with an explanation. I am unsure how your james server is configured. It looks like no limit is set in the jmap layer but only at the mail processing layer. |
So you :
Sorry written from mobile, if you need detailed pointers (conf / jmap) feel free to ask. |
And the goal of this issue it to validate and display to the user before sending the message that the max size is exceeded |
True as Benoit mentionned last time and you today, we need both client and server side validation. No need to call the server if the size is already higher that what we allow in client Note: you must also have to handle answer from the server (unexpected or not) correctly in the ui (in this issue, or create another one) |
Set Then in JMAP you can read the session object to retrieve that value on client side: https://jmap.io/spec-mail.html#additions-to-the-capabilities-object
And finally the error that should be returned when the size is exceeded is a Re-reading James tests this morning I realize that we sadly don't use the specific |
current
User is able to send an email over the size limitation with a multiple attachments
Actual Result
User is able to send an email with multiple attachments that over the size limitation.
The email is saved to the Sent mailbox but not actually delivered to the recipient
Relate to this one #258
Expected Result
It should return a warning for over the size limitation and doesn't allow to send the email
As a user I want have a validation before sending the request, or at least manage (display a nice error message) when size is exceeded.
expected
James now allows to configure the maximum size for emails (sum of all attachments) allowed and fails when exceeded.
In the composer have a validation before sending the request, or at least manage (display a nice error message) when size is exceeded.
Related to https://ci.linagora.com/linagora/lgs/k8s/indus-team-backlog/-/issues/943#note_419214
The text was updated successfully, but these errors were encountered: