Vítejte na serveru Doplňky pro Thunderbird.
Přidejte si funkce a styly, které učiní Thunderbird podle vašich představ.
ZavřítO doplňku
- Open the extension options page to configure backend connectivity and general behavior.
API settings
- API URL
- Storage key:
api_endpoint_url - Values: URL
- Description: Base URL of the modern API backend.
- Example:
https://antispam.example.com/api
- Storage key:
- API Token
- Storage key:
api_token - Values: string
- Description: Authentication token used for API access. When set, requests send:
Authorization: Bearer <token> - Storage key:
New integrations should use API mode.
Webservice settings (legacy, deprecated)
- Legacy webservice support is deprecated and will be removed in a future version.
- It exists only for backward compatibility with older deployments.
- New integrations should use the API backend.
- Webservice URL
- Storage key:
webservice_endpoint_url - Values: URL
- Description: Legacy webservice endpoint URL. Requests are sent with:
?ws=antispam - Storage key:
- Webservice Token
- Storage key:
webservice_token - Values: string
- Description: Legacy token sent as a form field named:
token - Storage key:
General settings
- Backend Type
- Storage key:
backend_type - Values:
api,webservice - Default:
webservice - Description: Selects whether backend calls use the modern API or deprecated legacy webservice compatibility mode. Prefer
api.
- Storage key:
- Refresh popup window when changing the displayed email
- Storage key:
reload_popup - Values:
1 = yes,0 = no - Default:
1 - Description: When enabled, an already opened popup is refreshed for the newly displayed message.
- Storage key:
- Automatic email info loading
- Storage key:
auto_email_info_loading - Values:
1 = yes,0 = no - Default:
1 - Description: When enabled, email info is automatically preloaded when messages are displayed. When disabled, no background preload runs; info is loaded only when explicitly requested, for example when opening the popup.
- Storage key:
- Focus popup window when refreshing it
- Storage key:
popup_focused - Values:
1 = yes,0 = no - Default:
1 - Description: When enabled, the refreshed popup window is focused.
- Storage key:
Popup preferences
- The popup also stores user convenience choices.
- Quick move folders
- Storage key:
quick_move_folders - Description: List of folder IDs shown as quick move choices in the popup.
- Storage key:
- Last selected move folder
- Storage key:
antispam_move_folder_id - Description: Last selected move target, stored via
browser.storage.local.
- Storage key:
API endpoints
- The extension currently uses only JSON POST requests for backend API integration.
- No backend GET endpoints are used by the current implementation.
- All API requests use the configured API URL as the base URL.
- If
api_tokenis configured, requests include:
Authorization: Bearer <api_token>
Accept: application/json
Content-Type: application/json
- Responses are expected to be JSON.
- The extension treats a response with
status: "OK"as successful and reads payload data fromdata. - Error responses are expected to provide
msg.
POST /antispam/maildata- Purpose: Store email metadata in the Antispam backend.
- Used for: The popup action that sends the currently displayed message metadata to the backend.
- Request body:
{ "maildata": { "...": "extracted message metadata" } }
- Expected response:
{ "status": "OK", "data": {} }
- Failure response:
{ "status": "ERROR", "msg": "Error message" }
POST /antispam/maildata/check- Purpose: Check extracted email metadata against Antispam rules.
- Used for: Automatic message-display preload and popup-triggered on-demand loading of email info.
- Request body:
{ "maildata": { "...": "extracted message metadata" } }
- Expected response:
{ "status": "OK", "data": { "msg": "Result message", "count": 0, "count_enabled": 0, "rules": [] } }
- Rule objects in
data.rulesare expected to include at least: rule_idpatternenabled
POST /antispam/rules- Purpose: Create or update an Antispam rule.
- Used for: Popup rule actions for sender email, sender domain, reply-to, recipient, and related extracted values.
- Request body:
{ "type": "sender_domain", "pattern": "example.com" }
- Expected response:
{ "status": "OK", "data": {} }