1 parent
a882d4edc2
commit
0365e8edc4
3 files changed
+21
-3
No files matched your search
@@ -2,6 +2,7 @@ package imap_server
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"crypto/rand"
|
||||
"crypto/rsa"
|
||||
"crypto/tls"
|
||||
@@ -34,6 +35,7 @@ var clientUnLogin *imapclient.Client
|
||||
var clientLogin *imapclient.Client
|
||||
var imapTestAddr string
|
||||
var imapTestProtocolCode string
|
||||
var imapDebug bytes.Buffer
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
wd, err := os.Getwd()
|
||||
@@ -85,6 +87,7 @@ func TestMain(m *testing.M) {
|
||||
}()
|
||||
|
||||
options := &imapclient.Options{
|
||||
DebugWriter: &imapDebug,
|
||||
WordDecoder: &mime.WordDecoder{CharsetReader: charset.Reader},
|
||||
TLSConfig: &tls.Config{
|
||||
InsecureSkipVerify: true,
|
||||
|
||||
@@ -289,6 +289,7 @@ func write(ctx *context.Context, w *imapserver.FetchWriter, emailList []*respons
|
||||
return err
|
||||
}
|
||||
}
|
||||
fmt.Printf("IMAP FETCH write sequence=%d uid=%d requested_uid=%t\n", sequence, uid, options.UID)
|
||||
var htmlSize uint32
|
||||
var textSize uint32
|
||||
attachmentSizes := make([]uint32, len(traEmail.Attachments))
|
||||
|
||||
Reference in new issue
Block a user