mirror of
https://github.com/mjl-/mox.git
synced 2025-07-19 03:26:37 +03:00
write base64 message parts with 76 data bytes on a line instead of 78
As required by RFC 2045 (MIME). The 78 byte lines work in practice, except that SpamAssassin has rules that give messages with 78-byte lines spam points. Mentioned by kjetilho on irc.
This commit is contained in:
@ -13,7 +13,7 @@ func TestBase64Writer(t *testing.T) {
|
||||
err = bw.Close()
|
||||
tcheckf(t, err, "close")
|
||||
s := sb.String()
|
||||
exp := "MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nz\r\ng5MDEyMzQ1Njc4OQ==\r\n"
|
||||
exp := "MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2\r\nNzg5MDEyMzQ1Njc4OQ==\r\n"
|
||||
if s != exp {
|
||||
t.Fatalf("base64writer, got %q, expected %q", s, exp)
|
||||
}
|
||||
|
Reference in New Issue
Block a user