mirror of
https://github.com/mjl-/mox.git
synced 2025-07-19 00:06:37 +03:00
imapclient: clean up function signature of New, allowing for future options too
This commit is contained in:
@ -64,7 +64,10 @@ func TestDeliver(t *testing.T) {
|
||||
tcheck(t, err, "dial imap")
|
||||
defer imapconn.Close()
|
||||
|
||||
imapc, err := imapclient.New(mox.Cid(), imapconn, false)
|
||||
opts := imapclient.Opts{
|
||||
Logger: slog.Default().With("cid", mox.Cid()),
|
||||
}
|
||||
imapc, err := imapclient.New(imapconn, &opts)
|
||||
tcheck(t, err, "new imapclient")
|
||||
|
||||
_, _, err = imapc.Login(imapuser, imappassword)
|
||||
|
Reference in New Issue
Block a user