forked from Silverfish/proton-bridge
GODT-213: Message Builder
This commit is contained in:
@ -536,7 +536,7 @@ func parseAttachment(h message.Header) (*pmapi.Attachment, error) {
|
||||
if h.Has("Content-Disposition") {
|
||||
if disp, _, err := h.ContentDisposition(); err != nil {
|
||||
return nil, err
|
||||
} else if disp == "inline" {
|
||||
} else if disp == pmapi.DispositionInline {
|
||||
att.ContentID = strings.Trim(h.Get("Content-Id"), " <>")
|
||||
}
|
||||
} else if h.Has("Content-Id") {
|
||||
|
||||
Reference in New Issue
Block a user