Hi, mutt can adjust the charset based on the input. But it seems that EmailMessage from python can not do this automatically. How does mutt choose the charset automatically based on the content? Thanks.
https://docs.python.org/3/library/email.message.html $ mutt -F temp.muttrc t...@addr.com <<< a Date: Thu, 4 Feb 2021 08:35:21 -0600 From: My name <mya...@gmail.com> To: t...@addr.com Message-ID: <20210204143521.ga84...@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline a $ mutt -F temp.muttrc t...@addr.com <<< α Date: Thu, 4 Feb 2021 08:31:35 -0600 From: My name <mya...@gmail.com> To: t...@addr.com Message-ID: <20210204143135.ga84...@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit α $ cat temp.muttrc set realname='My name' set from=mya...@gmail.com set hostname = gmail.com set sendmail=/tmp/mycat.sh $ cat /tmp/mycat.sh #!/usr/bin/env bash # vim: set noexpandtab tabstop=2: cat -- Regards, Peng