mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:44:35 +03:00
webmail: when composing a message, show security status in a bar below addressee input field
the bar is currently showing 3 properties: 1. mta-sts enforced; 2. mx lookup returned dnssec-signed response; 3. first delivery destination host has dane records the colors are: red for not-implemented, green for implemented, gray for error, nothing for unknown/irrelevant. the plan is to implement "requiretls" soon and start caching per domain whether delivery can be done with starttls and whether the domain supports requiretls. and show that in two new parts of the bar. thanks to damian poddebniak for pointing out that security indicators should always be visible, not only for positive/negative result. otherwise users won't notice their absence.
This commit is contained in:
@ -106,9 +106,12 @@ func Close() {
|
||||
}
|
||||
}
|
||||
|
||||
// Lookup looks up a policy for the domain in the database.
|
||||
// lookup looks up a policy for the domain in the database.
|
||||
//
|
||||
// Only non-expired records are returned.
|
||||
//
|
||||
// Returns ErrNotFound if record is not present.
|
||||
// Returns ErrBackoff if a recent attempt to fetch a record failed.
|
||||
func lookup(ctx context.Context, domain dns.Domain) (*PolicyRecord, error) {
|
||||
log := xlog.WithContext(ctx)
|
||||
db, err := database(ctx)
|
||||
|
Reference in New Issue
Block a user