• Alexey Neganov's avatar
    mime: handling invalid mime media parameters · b9f6b22a
    Alexey Neganov authored
    Sometimes it's necessary to deal with emails that do not follow the specification; in particular, it's possible to download such email via gmail.
    When the existing implementation handle invalid mime media parameters, it returns nils and error, although there is a valid media type, which may be returned.
    If this behavior changes, it may not affect any existing programs, but it will help to parse some emails.
    
    Fixes #19498
    
    Change-Id: Ieb2fdbddfd93857faee941d2aa49d59e286d57fd
    Reviewed-on: https://go-review.googlesource.com/38190Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    b9f6b22a
Name
Last commit
Last update
..
multipart Loading commit data...
quotedprintable Loading commit data...
testdata Loading commit data...
encodedword.go Loading commit data...
encodedword_test.go Loading commit data...
example_test.go Loading commit data...
grammar.go Loading commit data...
mediatype.go Loading commit data...
mediatype_test.go Loading commit data...
type.go Loading commit data...
type_dragonfly.go Loading commit data...
type_freebsd.go Loading commit data...
type_openbsd.go Loading commit data...
type_plan9.go Loading commit data...
type_test.go Loading commit data...
type_unix.go Loading commit data...
type_windows.go Loading commit data...