2018-10-24 06:19:50 +00:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"namespace": "manifest",
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"$extend": "WebExtensionManifest",
|
|
|
|
"properties": {
|
|
|
|
"folder_actions": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": { "$ref": "UnrecognizedProperty" },
|
|
|
|
"properties": {
|
|
|
|
"name": { "type": "string", "preprocess": "localize" }
|
|
|
|
},
|
|
|
|
"optional": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"namespace": "folder_actions",
|
|
|
|
"events": [
|
|
|
|
{
|
2018-10-28 22:51:10 +00:00
|
|
|
"name": "onEmptyTrash",
|
2018-10-24 06:19:50 +00:00
|
|
|
"type": "function",
|
2018-10-28 22:51:10 +00:00
|
|
|
"description": "Fired when Trash folders are emptied",
|
|
|
|
"parameters": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "onEmptyJunk",
|
|
|
|
"type": "function",
|
|
|
|
"description": "Fired when Junk folders are emptied",
|
|
|
|
"parameters": []
|
2018-10-24 06:19:50 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"id": "MailFolder",
|
|
|
|
"type": "object",
|
|
|
|
"description": "Information about a mail folder",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "Name of the folder to be emptied"
|
|
|
|
}
|
|
|
|
}
|
2018-10-28 22:51:10 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "ApiOptions",
|
|
|
|
"type": "object",
|
|
|
|
"description": "Folder API options",
|
|
|
|
"properties": {
|
|
|
|
"consoleDebug": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0,
|
|
|
|
"optional": true,
|
|
|
|
"description": "If set to 1, debug messages are printed out in console log"
|
|
|
|
},
|
|
|
|
"alsoCompact": {
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0,
|
|
|
|
"optional": true,
|
|
|
|
"description": "If set to 1, also compact folder after emptying"
|
|
|
|
}
|
|
|
|
}
|
2018-10-24 06:19:50 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"functions": [
|
|
|
|
{
|
2018-10-28 22:51:10 +00:00
|
|
|
"name": "setOptions",
|
2018-10-24 06:19:50 +00:00
|
|
|
"type": "function",
|
2018-10-28 22:51:10 +00:00
|
|
|
"description": "Sets options for this API",
|
2018-10-24 06:19:50 +00:00
|
|
|
"parameters": [
|
|
|
|
{
|
2018-10-28 22:51:10 +00:00
|
|
|
"name": "options",
|
|
|
|
"$ref": "ApiOptions",
|
|
|
|
"description": "API Options object"
|
2018-10-24 06:19:50 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "emptyTrashFolders",
|
|
|
|
"type": "function",
|
|
|
|
"description": "Empties Trash folders in all accounts",
|
|
|
|
"parameters": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "emptyJunkFolders",
|
|
|
|
"type": "function",
|
|
|
|
"description": "Empties Junk folders in all accounts",
|
|
|
|
"parameters": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
// vim: ts=2 sw=2 sts=2 et
|