mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 14:56:42 +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
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user