webmail: add server-side stored settings, for signature, top/bottom reply and showing the security indications below address input fields

should solve #102
This commit is contained in:
Mechiel Lukkien
2024-04-19 17:24:54 +02:00
parent 3bbd7c7d9b
commit 70adf353ee
9 changed files with 409 additions and 27 deletions

View File

@ -366,6 +366,19 @@
}
]
},
{
"Name": "SettingsSave",
"Docs": "SettingsSave saves settings, e.g. for composing.",
"Params": [
{
"Name": "settings",
"Typewords": [
"Settings"
]
}
],
"Returns": []
},
{
"Name": "SSETypes",
"Docs": "SSETypes exists to ensure the generated API contains the types, for use in SSE events.",
@ -1382,6 +1395,40 @@
}
]
},
{
"Name": "Settings",
"Docs": "Settings are webmail client settings.",
"Fields": [
{
"Name": "ID",
"Docs": "Singleton ID 1.",
"Typewords": [
"uint8"
]
},
{
"Name": "Signature",
"Docs": "",
"Typewords": [
"string"
]
},
{
"Name": "Quoting",
"Docs": "",
"Typewords": [
"Quoting"
]
},
{
"Name": "ShowAddressSecurity",
"Docs": "Whether to show the bars underneath the address input fields indicating starttls/dnssec/dane/mtasts/requiretls support by address.",
"Typewords": [
"bool"
]
}
]
},
{
"Name": "EventStart",
"Docs": "EventStart is the first message sent on an SSE connection, giving the client\nbasic data to populate its UI. After this event, messages will follow quickly in\nan EventViewMsgs event.",
@ -1438,6 +1485,13 @@
"string"
]
},
{
"Name": "Settings",
"Docs": "",
"Typewords": [
"Settings"
]
},
{
"Name": "Version",
"Docs": "",
@ -2815,6 +2869,27 @@
}
]
},
{
"Name": "Quoting",
"Docs": "Quoting is a setting for how to quote in replies/forwards.",
"Values": [
{
"Name": "Default",
"Value": "",
"Docs": "Bottom-quote if text is selected, top-quote otherwise."
},
{
"Name": "Bottom",
"Value": "bottom",
"Docs": ""
},
{
"Name": "Top",
"Value": "top",
"Docs": ""
}
]
},
{
"Name": "Localpart",
"Docs": "Localpart is a decoded local part of an email address, before the \"@\".\nFor quoted strings, values do not hold the double quote or escaping backslashes.\nAn empty string can be a valid localpart.\nLocalparts are in Unicode NFC.",