From 2c4bb658a0264684a482e34001d690dcb6d67b26 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Mon, 14 Sep 2026 22:08:50 +0200 Subject: [PATCH] feat: increase message size from 30 to 50 mb gross this PR allows attachments and videos of about 38 mb net (50 mb gross). once relays are sufficiently updated, core will pick up the new default (core currently uses 18 mb only, an old default of non-chatmail-era) this is quite some boost in quality or video length, roughly a doubling, which still being reasonably to overall storage (with this PR we alllow a single message taking up to 1/10th of storage - when chatmail was started, this was even 1/3rd. note, that too large files will be deleted, but there will add a pre-message still) --- chatmaild/src/chatmaild/config.py | 2 +- chatmaild/src/chatmaild/ini/chatmail.ini.f | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chatmaild/src/chatmaild/config.py b/chatmaild/src/chatmaild/config.py index 09085742..cf408759 100644 --- a/chatmaild/src/chatmaild/config.py +++ b/chatmaild/src/chatmaild/config.py @@ -31,7 +31,7 @@ class Config: self.max_user_send_per_minute = int(params.pop("max_user_send_per_minute", 60)) self.max_user_send_burst_size = int(params.pop("max_user_send_burst_size", 10)) self.max_mailbox_size = params.pop("max_mailbox_size", "500M") - self.max_message_size = int(params.pop("max_message_size", 31457280)) + self.max_message_size = int(params.pop("max_message_size", 52428800)) self.delete_mails_after = params.pop("delete_mails_after", "20") self.delete_large_after = params.pop("delete_large_after", "7") self.delete_inactive_users_after = int( diff --git a/chatmaild/src/chatmaild/ini/chatmail.ini.f b/chatmaild/src/chatmaild/ini/chatmail.ini.f index 7badf55b..bd164a7f 100644 --- a/chatmaild/src/chatmaild/ini/chatmail.ini.f +++ b/chatmaild/src/chatmaild/ini/chatmail.ini.f @@ -22,7 +22,7 @@ mail_domain = {mail_domain} #max_mailbox_size = 500M # maximum message size for an e-mail in bytes -#max_message_size = 31457280 +#max_message_size = 52428800 # days after which mails are unconditionally deleted #delete_mails_after = 20