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:
Mechiel Lukkien
2024-04-20 21:25:52 +02:00
parent 3a58b2a1f4
commit 0f735a1710
11 changed files with 284 additions and 23 deletions

View File

@ -99,6 +99,19 @@
}
]
},
{
"Name": "FromAddressSettingsSave",
"Docs": "FromAddressSettingsSave saves per-\"From\"-address settings.",
"Params": [
{
"Name": "fas",
"Typewords": [
"FromAddressSettings"
]
}
],
"Returns": []
},
{
"Name": "MessageFindMessageID",
"Docs": "MessageFindMessageID looks up a message by Message-Id header, and returns the ID\nof the message in storage. Used when opening a previously saved draft message\nfor editing again.\nIf no message is find, zero is returned, not an error.",
@ -833,6 +846,13 @@
"string"
]
},
{
"Name": "ViewMode",
"Docs": "",
"Typewords": [
"ViewMode"
]
},
{
"Name": "Texts",
"Docs": "Text parts, can be empty.",
@ -1129,6 +1149,26 @@
}
]
},
{
"Name": "FromAddressSettings",
"Docs": "FromAddressSettings are webmail client settings per \"From\" address.",
"Fields": [
{
"Name": "FromAddress",
"Docs": "Unicode.",
"Typewords": [
"string"
]
},
{
"Name": "ViewMode",
"Docs": "",
"Typewords": [
"ViewMode"
]
}
]
},
{
"Name": "ComposeMessage",
"Docs": "ComposeMessage is a message to be composed, for saving draft messages.",
@ -2982,6 +3022,32 @@
}
]
},
{
"Name": "ViewMode",
"Docs": "ViewMode how a message should be viewed: its text parts, html parts, or html\nwith loading external resources.",
"Values": [
{
"Name": "ModeDefault",
"Value": "",
"Docs": ""
},
{
"Name": "ModeText",
"Value": "text",
"Docs": ""
},
{
"Name": "ModeHTML",
"Value": "html",
"Docs": ""
},
{
"Name": "ModeHTMLExt",
"Value": "htmlext",
"Docs": "HTML with external resources."
}
]
},
{
"Name": "SecurityResult",
"Docs": "SecurityResult indicates whether a security feature is supported.",