User preferences
GET
Session/api/settings/preferencesReturns the authenticated user's layout, compose, notification, and appearance preferences.
{
"preferences": {
"readingPane": "right",
"density": "comfortable",
"undoSendSeconds": 5,
"spamSensitivity": "standard"
}
}PUT
Session/api/settings/preferencesPartially updates and persists preferences in SQLite.
Body parameters
readingPane"right" | "bottom" | "off"— Reading pane layoutdensity"comfortable" | "compact"— Message list densityundoSendSeconds5 | 10 | 20 | 30— Undo send delayspamSensitivity"standard" | "strict"— Inbound spam thresholdUpdate preferences
curl -b cookies.txt -X PUT https://mail.example.com/api/settings/preferences \
-H "Content-Type: application/json" \
-d '{"readingPane":"bottom","undoSendSeconds":10}'Mail rules & sender lists
GET
Session/api/settings/rulesLists the user's mail rules ordered by sort_order.
POST
Session/api/settings/rulesCreates a new server-side mail rule.
POST
Session/api/settings/rules/applyApplies all enabled rules across existing Inbox, Archive, and Spam messages.
{ "ok": true, "updatedCount": 14 }POST
Session/api/settings/sender-listsAdds an email address or domain to the blocked or safe sender list.
Body parameters
listType"blocked" | "safe"required— Target listentrystringrequired— Email address or domainGET
Session/api/settings/exportStreams all non-deleted user messages as an RFC 4155 .mbox download.