la5nta / wl2k-go

A Winlink framework for Go.

Home Page:https://getpat.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

martinhpedersen opened this issue · comments

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.