You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
269 B
Go
14 lines
269 B
Go
9 months ago
|
package smtpserver
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"mime"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestSession_Data(t *testing.T) {
|
||
|
s := `=?UTF-8?q?=E5=85=B7=E8=B6=B3=E8=99=AB=E7=94=B5=E8=B4=BA=E8=A6=81=E8=BE=8A?= =?UTF-8?q?=E6=A5=9Ejhkkj?=`
|
||
|
d := new(mime.WordDecoder)
|
||
|
fmt.Println(d.DecodeHeader(s))
|
||
|
}
|