webmail: add setting to show html version of a message by default, instead of text version

related to issue #196 by GildedHonour
This commit is contained in:
Mechiel Lukkien
2024-08-23 14:02:55 +02:00
parent fe9afb40bc
commit b77f44ab58
9 changed files with 45 additions and 30 deletions

View File

@ -738,6 +738,9 @@ type Settings struct {
// Whether to show the bars underneath the address input fields indicating
// starttls/dnssec/dane/mtasts/requiretls support by address.
ShowAddressSecurity bool
// Show HTML version of message by default, instead of plain text.
ShowHTML bool
}
// ViewMode how a message should be viewed: its text parts, html parts, or html
@ -745,7 +748,6 @@ type Settings struct {
type ViewMode string
const (
ModeDefault ViewMode = ""
ModeText ViewMode = "text"
ModeHTML ViewMode = "html"
ModeHTMLExt ViewMode = "htmlext" // HTML with external resources.