mirror of
https://git.sr.ht/~rjarry/aerc
synced 2025-07-06 19:30:22 +02:00

Add a function to retrieve configurations from the autoconfig-subdomain or a .well-known file. Signed-off-by: Moritz Poldrack <git@moritz.sh> Acked-by: Robin Jarry <robin@jarry.cc>
29 lines
841 B
Go
29 lines
841 B
Go
package autoconfig
|
|
|
|
type protocol uint8
|
|
|
|
const (
|
|
// ProtocolUnknown is returned when determining the proper protocol was
|
|
// not possible
|
|
ProtocolUnknown protocol = 255
|
|
// ProtocolJMAP is returned when the given server uses the JMAP protocol
|
|
ProtocolJMAP protocol = iota
|
|
// ProtocolIMAP is returned when the given server uses the IMAP protocol
|
|
ProtocolIMAP
|
|
)
|
|
|
|
type encryption uint8
|
|
|
|
const (
|
|
// EncryptionUnknown is returned when determining the proper encryption
|
|
// was not possible
|
|
EncryptionUnknown encryption = 255
|
|
// EncryptionSTARTTLS is returned when the given connection uses
|
|
// STARTTLS
|
|
EncryptionSTARTTLS encryption = iota
|
|
// EncryptionTLS is returned when the given connection uses a TLS
|
|
// wrapped connection
|
|
EncryptionTLS
|
|
// EncryptionInsecure is returned when a connection is not encrypted
|
|
EncryptionInsecure
|
|
)
|