package connect

import (
	"github.com/emersion/go-imap/v2/imapclient"
	"github.com/emersion/go-sasl"

	"github.com/ultisuite/ulti-backend/internal/mail/credentials"
)

func AuthenticateIMAP(client *imapclient.Client, cred credentials.Credential) error {
	return authenticateIMAP(client, cred)
}

func SMTPClient(cred credentials.Credential) (sasl.Client, error) {
	return smtpAuth(cred)
}
