package autoconfig

// Result is the suggested mail client configuration for an email address.
type Result struct {
	Email        string   `json:"email"`
	Domain       string   `json:"domain"`
	ProviderID   string   `json:"provider_id"`
	ProviderName string   `json:"provider_name"`
	Source       string   `json:"source"`     // preset, mx, autoconfig, guess
	Confidence   string   `json:"confidence"` // high, medium, low
	IMAPHost     string   `json:"imap_host"`
	IMAPPort     int      `json:"imap_port"`
	IMAPTLS      bool     `json:"imap_tls"`
	SMTPHost     string   `json:"smtp_host"`
	SMTPPort     int      `json:"smtp_port"`
	SMTPTLS      bool     `json:"smtp_tls"`
	UsernameHint string   `json:"username_hint"` // email | local
	AuthMethods  []string `json:"auth_methods"`
	Notes        []string `json:"notes,omitempty"`
}
