You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package tools
|
|
|
|
import (
|
|
"fmt"
|
|
"mime"
|
|
)
|
|
|
|
func main() {
|
|
dec := new(mime.WordDecoder)
|
|
header, err := dec.DecodeHeader("=?utf-8?q?=C3=89ric?= <eric@example.org>, =?utf-8?q?Ana=C3=AFs?= <anais@example.org>")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
fmt.Println(header)
|
|
}
|