feat: set header

This commit is contained in:
James Houlahan
2020-08-05 14:21:00 +02:00
parent f88071b2ca
commit 0d4d95360f

View File

@ -315,6 +315,9 @@ func parseHeader(m *pmapi.Message, h message.Header) error {
return err
}
// TODO: Is this okay? Might need to append/split/something.
m.Header[fields.Key()] = []string{text}
switch strings.ToLower(fields.Key()) {
case "subject":
m.Subject = text