email: EnqueueStd: set Content-Type with charset=UTF-8 instead of just text/plain Mails are now --11d2cbf164a9ae0dfbb310faf818762607dcfd20aa74e07c7be0eec1458d Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 =D1=82=D1=80=D1=83=D0=BF=D0=B08 --=20 View on the web: http://192.168.1.101:5003/~nab2/trupa/8 --11d2cbf164a9ae0dfbb310faf818762607dcfd20aa74e07c7be0eec1458d Content-Type: application/pgp-signature -----BEGIN PGP MESSAGE----- wnUEARYIACcFAmUavj0JkKdioLsBS5scFiEE+ts/9LaoXcZuSmrHp2KguwFLmxwA AIm9AP9KB4cZyiby7jiiRMRESDeJXrdb4kNqyA3D3nVOt14bKgD/UiDfUKE1MwiV pOqj/S0wiJdChKW52zRAkwuQ7PtKkgI= =AiY9 -----END PGP MESSAGE----- --11d2cbf164a9ae0dfbb310faf818762607dcfd20aa74e07c7be0eec1458d-- which is correct, and decodes correctly in neomutt. Fixes: https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3C4uxbrlspm45s5i4bhhmqgmry374i22oqcxedtowda5zrzd7bpf2%405pyosds5owty%3E
1 files changed, 1 insertions(+), 1 deletions(-) M email/worker.go
M email/worker.go => email/worker.go +1 -1
@@ 142,7 142,7 @@ func EnqueueStd(ctx context.Context, header mail.Header, defer cleartext.Close() var inlineHeader mail.Header inlineHeader.SetContentType("text/plain", nil) inlineHeader.SetContentType("text/plain", map[string]string{"charset": "UTF-8"}) body, err := mail.CreateSingleInlineWriter(cleartext, inlineHeader) if err != nil { panic(err)