mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-16 07:06:45 +00:00
feat: set header
This commit is contained in:
@ -315,6 +315,9 @@ func parseHeader(m *pmapi.Message, h message.Header) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Is this okay? Might need to append/split/something.
|
||||||
|
m.Header[fields.Key()] = []string{text}
|
||||||
|
|
||||||
switch strings.ToLower(fields.Key()) {
|
switch strings.ToLower(fields.Key()) {
|
||||||
case "subject":
|
case "subject":
|
||||||
m.Subject = text
|
m.Subject = text
|
||||||
|
|||||||
Reference in New Issue
Block a user