mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:44:35 +03:00
webmail: remember per from-address whether we should show the text/html/html-with-external-resources version of a message
This commit is contained in:
@ -740,6 +740,23 @@ type Settings struct {
|
||||
ShowAddressSecurity bool
|
||||
}
|
||||
|
||||
// ViewMode how a message should be viewed: its text parts, html parts, or html
|
||||
// with loading external resources.
|
||||
type ViewMode string
|
||||
|
||||
const (
|
||||
ModeDefault ViewMode = ""
|
||||
ModeText ViewMode = "text"
|
||||
ModeHTML ViewMode = "html"
|
||||
ModeHTMLExt ViewMode = "htmlext" // HTML with external resources.
|
||||
)
|
||||
|
||||
// FromAddressSettings are webmail client settings per "From" address.
|
||||
type FromAddressSettings struct {
|
||||
FromAddress string // Unicode.
|
||||
ViewMode ViewMode
|
||||
}
|
||||
|
||||
// Types stored in DB.
|
||||
var DBTypes = []any{
|
||||
NextUIDValidity{},
|
||||
@ -756,6 +773,7 @@ var DBTypes = []any{
|
||||
DiskUsage{},
|
||||
LoginSession{},
|
||||
Settings{},
|
||||
FromAddressSettings{},
|
||||
}
|
||||
|
||||
// Account holds the information about a user, includings mailboxes, messages, imap subscriptions.
|
||||
|
Reference in New Issue
Block a user