email: Increase the size of the message to 100MiB

- This includes the envelope size, so the actual size of the message and
attachments is somewhat lower.

Tests:

- Install the app freshly with the patch. Notice that message_size_limit is set
to 102400000 by running 'postconf message_size_limit'.

- Install the app without the patch. Apply patche and notice that the app is
updated. Notice that message_size_limit is set to 102400000 by running 'postconf
message_size_limit'.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2023-11-01 11:14:53 -07:00 committed by James Valleroy
parent fd1955a084
commit a11197b285
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 4 additions and 2 deletions

View File

@ -53,7 +53,7 @@ class EmailApp(plinth.app.App):
app_id = 'email'
_version = 3
_version = 4
def __init__(self):
"""Initialize the email app."""

View File

@ -29,7 +29,9 @@ default_config = {
','.join([
'permit_sasl_authenticated',
'defer_unauth_destination',
])
]),
'message_size_limit':
'102400000',
}
submission_options: dict[str, str] = {