for incoming smtp deliveries, track whether tls and requiretls was used, and display this in the webmail

we store the tls version used, and cipher suite. we don't currently show that
in the webmail.
This commit is contained in:
Mechiel Lukkien
2023-11-01 21:30:13 +01:00
parent 186538fb57
commit 9896639ff9
8 changed files with 54 additions and 12 deletions

View File

@ -482,6 +482,10 @@ type Message struct {
// Changes are propagated to the webmail client.
ThreadCollapsed bool
ReceivedTLSVersion uint16 // 0 if unknown, 1 if plaintext/no TLS, otherwise TLS cipher suite.
ReceivedTLSCipherSuite uint16
ReceivedRequireTLS bool // Whether RequireTLS was known to be used for incoming delivery.
Flags
// For keywords other than system flags or the basic well-known $-flags. Only in
// "atom" syntax (IMAP), they are case-insensitive, always stored in lower-case