BrianLeishman / go-imap

Super Simple IMAP Client Library for Golang
MIT License
66 stars 24 forks source link

Fix bug where the dialer can be null #14

Closed water-a closed 5 months ago

water-a commented 5 months ago

This PR fixes the bug where the dialer can be null if the tls connection fails for whatever reason and the verbose flag is set to true.

Saw this while testing my Go code.

github.com/BrianLeishman/go-imap.New({0xc0009f4500, 0x1a}, {0xc0009f4520, 0xa}, {0xc000a66450, 0xe}, 0x3e1)
        C:/Users/Anik/go/pkg/mod/github.com/!brian!leishman/go-imap@v0.1.3/main.go:218 +0x3aa
BrianLeishman commented 5 months ago

Looks good, thank you!