Compare commits

..
Author SHA1 Message Date
B. Petersen 2c4bb658a0 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)
2026-09-14 22:08:50 +02:00
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- name: download filtermail
run: curl -L https://github.com/chatmail/filtermail/releases/download/v0.7.7/filtermail-x86_64 -o /usr/local/bin/filtermail && chmod +x /usr/local/bin/filtermail
run: curl -L https://github.com/chatmail/filtermail/releases/download/v0.7.4/filtermail-x86_64 -o /usr/local/bin/filtermail && chmod +x /usr/local/bin/filtermail
- name: run chatmaild tests
working-directory: chatmaild
run: pipx run tox
+1 -1
View File
@@ -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(
+1 -1
View File
@@ -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
+3 -3
View File
@@ -1,14 +1,14 @@
"""Versions, hashes, and download URLs for pre-built artifacts fetched during deploy."""
FILTERMAIL_VERSION = "v0.7.7"
FILTERMAIL_VERSION = "v0.7.4"
FILTERMAIL_ARTIFACTS = {
"x86_64": (
f"https://github.com/chatmail/filtermail/releases/download/{FILTERMAIL_VERSION}/filtermail-x86_64",
"0691debf501f854f4e6a9dd6516f3a0ef03d95721a9b540309014bfe1a1f52b1",
"484cb8dff083134aefba9fce4a6b7ef4784a0f0e28e5108ecf8bb9e58a44fd2c",
),
"aarch64": (
f"https://github.com/chatmail/filtermail/releases/download/{FILTERMAIL_VERSION}/filtermail-aarch64",
"964f85df8b65b812666113f968cbfdd8da88ce16d218284deb359c1e2400d2da",
"66aa0ca2ca9add7a12d92883d76f8786384092adfde24a3d3a1d0b1f30d23a9e",
),
"mtail": (
f"https://raw.githubusercontent.com/chatmail/filtermail/{FILTERMAIL_VERSION}/contrib/filtermail.mtail",