la5nta / wl2k-go

A Winlink framework for Go.
https://getpat.io
MIT License
50 stars 20 forks source link

fbb: Support ISO-8859-1 encoded headers (subject) #24

Closed martinhpedersen closed 8 years ago

martinhpedersen commented 8 years ago

Although the winlink message format specification says that the headers should be ASCII-only characters, RMS Express encodes the subject header as ISO-8859-1.

If we use https://golang.org/pkg/mime/#WordDecoder and #WordEncoder for the headers, we should be able to properly decode ISO-8859-1 headers as well as conforming with RFC 2047 on encode.

Currently, fbb encodes/decodes the headers as UTF-8... which is clearly wrong.

martinhpedersen commented 8 years ago

Fixed in fa48ce7ed13d9e4f4771844f13b44599be350fe3.