email: set Content-Type to format=flowed This allows us to start sending emails in flowed format. It does not actually change anything, until the templates in the services get updated. As format=flowed is designed to be backwards-compatible, it also doesn't break anything. All emails will still look like before, with static line breaks. However, changing the templates to flowed will now produce emails that render as flowed successfully. Tested on plain (signed) and encrypted mails. See https://www.ietf.org/rfc/rfc2646.txt
1 files changed, 4 insertions(+), 1 deletions(-) M email/worker.go
M email/worker.go => email/worker.go +4 -1
@@ 146,7 146,10 @@ func EnqueueStd(ctx context.Context, header mail.Header, defer cleartext.Close() var inlineHeader mail.Header inlineHeader.SetContentType("text/plain", map[string]string{"charset": "UTF-8"}) inlineHeader.SetContentType("text/plain", map[string]string{ "charset": "UTF-8", "format": "flowed", }) body, err := mail.CreateSingleInlineWriter(cleartext, inlineHeader) if err != nil { panic(err)