mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2026-02-08 01:58:34 +00:00
refactor: tidy a bit
This commit is contained in:
@ -277,7 +277,12 @@ func writeMIMEMessage(p *parser.Parser) (mime string, err error) {
|
||||
NewWriter().
|
||||
WithCondition(func(p *parser.Part) (keep bool) {
|
||||
disp, _, err := p.Header.ContentDisposition()
|
||||
return err != nil || disp != "attachment"
|
||||
if err != nil {
|
||||
return true
|
||||
}
|
||||
|
||||
// TODO: Is it true that we don't want to write attachments? I thought this was for externals...
|
||||
return disp != "attachment"
|
||||
})
|
||||
|
||||
buf := new(bytes.Buffer)
|
||||
|
||||
Reference in New Issue
Block a user