1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-07-06 19:30:22 +02:00
aerc/lib/autoconfig/constants.go
Moritz Poldrack e1a5faa521 autoconf: add config retrieval using HTTP-based autoconfig
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>
2025-02-14 13:50:27 +01:00

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
)