~sircmpwn/sr.ht-discuss

core-go: Encrypted mail payloads have no encoding set => non-ASCII renders mangled? v1 APPLIED

наб: 1
 email: EnqueueStd: set Content-Type with charset=UTF-8 instead of just text/plain

 1 files changed, 1 insertions(+), 1 deletions(-)
#1066950 alpine.yml failed
LGTM
Thanks!

To git@git.sr.ht:~sircmpwn/core-go
   65b1657..bf4fe19  master -> master
core-go/patches/alpine.yml: FAILED in 58s

[Encrypted mail payloads have no encoding set => non-ASCII renders mangled?][0] from [наб][1]

[0]: https://lists.sr.ht/~sircmpwn/sr.ht-discuss/patches/45286
[1]: mailto:nabijaczleweli@nabijaczleweli.xyz

✗ #1066950 FAILED core-go/patches/alpine.yml https://builds.sr.ht/~sircmpwn/job/1066950
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/sr.ht-discuss/patches/45286/mbox | git am -3
Learn more about email & git

[PATCH core-go] email: EnqueueStd: set Content-Type with charset=UTF-8 instead of just text/plain Export this patch

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
---
Subject is also
  Subject: =?utf-8?q?~nab2/trupa#8:_=D1=82=D1=80=D1=83=D0=BF=D0=B08?=
for that mail, so all appears to be fine.

 email/worker.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/email/worker.go b/email/worker.go
index 288b3e0..9e2a004 100644
--- a/email/worker.go
+++ b/email/worker.go
@@ -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)
-- 
2.39.2
LGTM
Thanks!

To git@git.sr.ht:~sircmpwn/core-go
   65b1657..bf4fe19  master -> master
core-go/patches/alpine.yml: FAILED in 58s

[Encrypted mail payloads have no encoding set => non-ASCII renders mangled?][0] from [наб][1]

[0]: https://lists.sr.ht/~sircmpwn/sr.ht-discuss/patches/45286
[1]: mailto:nabijaczleweli@nabijaczleweli.xyz

✗ #1066950 FAILED core-go/patches/alpine.yml https://builds.sr.ht/~sircmpwn/job/1066950