mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 12:24:38 +03:00
add todo's about mime header parameter decoding
not sure what the correct approach is, would need to analyze email archive for practices.
This commit is contained in:
@ -212,6 +212,7 @@ func parsedMessage(log *mlog.Log, m store.Message, state *msgState, full, msgite
|
||||
disp, params, err := mime.ParseMediaType(cp)
|
||||
log.Check(err, "parsing content-disposition", mlog.Field("cp", cp))
|
||||
if strings.EqualFold(disp, "attachment") {
|
||||
// todo: should we be decoding these names? i've seen messages with regular q-word style mime-encoding, not the one specified in ../rfc/2231:210
|
||||
name := p.ContentTypeParams["name"]
|
||||
if name == "" {
|
||||
name = params["filename"]
|
||||
|
Reference in New Issue
Block a user