From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 560581FF183 for ; Wed, 8 Oct 2025 10:52:25 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id C0C02227D; Wed, 8 Oct 2025 10:52:30 +0200 (CEST) Mime-Version: 1.0 Date: Wed, 08 Oct 2025 10:51:57 +0200 To: "Shannon Sterz" , Message-Id: X-Mailer: aerc 0.20.0 References: <20250902142720.371671-1-s.sterz@proxmox.com> In-Reply-To: <20250902142720.371671-1-s.sterz@proxmox.com> From: "Shannon Sterz" X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1759913487019 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.056 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pbs-devel] Superseded: Re: [PATCH proxmox 0/3] improve mail compatability X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Backup Server development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pbs-devel-bounces@lists.proxmox.com Sender: "pbs-devel" On Tue Sep 2, 2025 at 4:27 PM CEST, Shannon Sterz wrote: > this series tries to improve compatability with more mail servers. this > is done in three ways: > > - patch 1: base64 encode filenames of attachments > - patch 2: check whether the html or text bodies of an email are ascii > only. if they are, we can safely declare 7bit encoding which should be > more broadly compatability than the previous 8bit encoding. if the > text is not ascii only, encode it as base64 and declare base64 > encoding. > - patch 3: splits the Content-Disposition header of attached files over > two lines, to avoid longer files possibly triggering a line length > limit. > > this should specifically make it possible to support mail servers that > don't support SMTPUTF8, as now no part of the header or body should > contain plain utf8 characters directly. > > i tested these patches against the following mail clients: > > - bluemind > - Thunderbird > - aerc > - canary [1] > - iOS Mail app > - gmail.com > - outlook.com > > all of them seemed to receive the email and display it properly (note > that aerc prefers the TXT part of the mime alternative parts even if the > html part should be preferred, due to being a terminal based mua). > > [1]: https://canarymail.io/ > > Shannon Sterz (3): > sendmail: encode non-ascii filenames to improve compatability > sendmail: encode non-ascii bodies as base64 to improve comptability > sendmail: break content disposition headers for attachments > > proxmox-sendmail/src/lib.rs | 193 +++++++++++++++++++++++++++--------- > 1 file changed, 147 insertions(+), 46 deletions(-) > > -- > 2.47.2 Superseded-by: https://lore.proxmox.com/all/20251008084906.62427-1-s.sterz@proxmox.com/T/#t _______________________________________________ pbs-devel mailing list pbs-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel