pmg_action_removeattachments_create
Create a remove-attachments action object to strip attachments from emails and replace with custom text. Supports optional quarantine of removed attachments. Runs in dry-run mode by default; set confirm=true to execute.
Instructions
MUTATION (LOW): create a remove-attachments action object in the PMG RuleDB. Dry-run by default.
List existing action objects with pmg_action_objects_list; attach this one to a rule with pmg_ruledb_rule_action_attach. Needs PROXIMO_PMG_* config. confirm=True executes and returns {"status": "ok", "result": <PMG's raw API response>}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all_ | No | If True, remove all attachments; maps to API param 'all'. | |
| info | No | Optional free-text description. | |
| name | Yes | Name for the new remove-attachments action object. | |
| text | Yes | Replacement text inserted in place of removed attachments. | |
| confirm | No | False (default) returns a dry-run PLAN; True executes the mutation. | |
| quarantine | No | If True, quarantine removed attachments instead of discarding them. | |
| proximo_target | No | Which configured Proxmox target to run this call against — a target name from your multi-target config (a specific PVE/PBS/PMG/PDM box). Omit to use the single/default target from the environment; the selection applies only to this call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |