<pre class="notranslate">I have nice acquitances whose email addresses I would like to parse correctly, but they,
oddly, have chosen to use windows-1252 to encode their email address. In
mail.ParseAddress, any character encodings other than utf-8 and iso-8859-1 are not
handled.

It would be nice to support windows-1252 with a preference towards being able to plug
more charsets in. (Perhaps, with a similar interface as go.text/transform#Transformer.)

Example:

    str := "=?windows-1252?Q?Michael_Bo=DFlet?= &lt;michael.bosslet@example.com&gt;"
    a, err := mail.ParseAddress(str)
    if err != nil {
        log.Fatalf("%s", err)
    }
    log.Printf("%s", a)

This will crash, unfortunately.</pre>
<p dir="auto">by <strong>Famcool</strong>:</p>
<pre class="notranslate">Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
<a href="http://play.golang.org/p/rH-eI5y1f8" rel="nofollow">http://play.golang.org/p/rH-eI5y1f8</a>

What is the expected output?
The address decoded.

What do you see instead?
Error: mail: missing word in phrase

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
linux

Which version are you using?  (run 'go version')
1.2

Please provide any additional information below.</pre>