From 52f7d3f900e4c0e3ee8458c9479859924901a3aa Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Mon, 18 Jul 2022 15:22:34 +0200 Subject: gpg: set a name for the attached pgp signature part This makes it more explicit for non pgp compatible clients. Without this, they may show "unnamed part" or "noname". Signed-off-by: Robin Jarry Acked-by: Moritz Poldrack --- lib/crypto/gpg/writer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crypto/gpg/writer.go b/lib/crypto/gpg/writer.go index 269b490..96d083e 100644 --- a/lib/crypto/gpg/writer.go +++ b/lib/crypto/gpg/writer.go @@ -69,7 +69,7 @@ func (s *Signer) Close() (err error) { s.w.Write([]byte("\r\n")) var signedHeader textproto.Header - signedHeader.Set("Content-Type", "application/pgp-signature") + signedHeader.Set("Content-Type", "application/pgp-signature; name=\"signature.asc\"") signatureWriter, err := s.mw.CreatePart(signedHeader) if err != nil { return err -- cgit v1.2.3