golang2 Golang POP3 구현 package routes import ( "bytes" "crypto/rand" "encoding/base64" "encoding/json" "fmt" "io" "io/ioutil" "log" "mime" "mime/multipart" "mime/quotedprintable" "net/http" "net/mail" "strconv" "strings" "github.com/taknb2nch/go-pop3" ) type popMail struct { Title string From string To string Uid string Date string Content string } func pop(w http.ResponseWriter, r *http.Request) { addr := "pop.naver... 2020. 10. 30. go-imap, charset 오류(ks_c_5601-1987 error) Golang, go-imap 패키지 사용 중 ks_c_5601-197 오류가 생길 때, 1. go-imap을 사용하는 함수 안에 다음 코드 추가 imap.CharsetReader = charset.Reader 2. charset.go 파일 안에 "ks_c_5601-1987": korean.EUCKR 추가 var charsets = map[string]encoding.Encoding{ ... "ks_c_5601-1987": korean.EUCKR, ... } 2020. 6. 30. 이전 1 다음