Consider a mail message containing Return-Path: <xé[email protected]> X-Original-To: xè[email protected] Delivered-To: xè[email protected] Date: Tue, 24 Nov 2026 15:47:24 +0100 From: xé[email protected] To: xè[email protected] Subject: éèêë MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline
with UTF-8 characters in headers, as allowed by RFC 6532. By default ($assumed_charset set to the empty string), Mutt shows this message correctly. But if $assumed_charset is explicitly set to "us-ascii", I get Return-Path: <xé[email protected]> X-Original-To: x��[email protected] Delivered-To: x��[email protected] Date: Tue, 24 Nov 2026 15:47:24 +0100 From: xé[email protected] To: xè[email protected] Subject: �������� MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline (with the mbox format, the "From " line also shows "x��x"), i.e. only the "Return-Path:", "From:" and "To:" are shown correctly, perhaps because Mutt has some special address decoding for these particular headers. I can see in the ChangeLog: 2015-11-24 15:49 -0800 Kevin McCarthy <[email protected]> (935c779db0ea) [...] RFC6532 support already worked: rfc822*.c already parsed messages in exactly the way RFC6532 wants. This is actually commit e819d117dfd96d22e72f984875541e877ccf7634 (I suspect that 935c779db0ea is the old Mercurial hash). Note that the "X-Original-To:" and "Delivered-To:" headers with UTF-8 characters are generated by Postfix. The "From " line (mbox format) with UTF-8 characters is generated by Mutt itself. The Mutt manual says about assumed_charset: This variable is a colon-separated list of character encoding schemes for messages without character encoding indication. Header field values and message body content without character encoding indication would be assumed that they are written in one of this list. By default, all the header fields and message body without any charset indication are assumed to be in "us-ascii". The last sentence ("By default, [...]") contradicts the behavior when $assumed_charset is explicitly set to "us-ascii". Tests done with 20a57583b24237d2d6d401d70eaf1ff161e8983a. IMHO, nowadays with RFC 6532, in order to avoid inconsistencies, Mutt should always assume utf-8 first (as if "utf-8:" were prepended to $assumed_charset). -- Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)
