Source: factory.service/package.gekkoridge/ObjServiceGmail.py
Gmail cleanup service using gws CLI.
| Method | Signature | Description |
|---|---|---|
| list_messages | list_messages(query: str, max_results: int = 100) -> list[str] |
Return message IDs matching a Gmail query. |
| trash_message | trash_message(msg_id: str) -> bool |
Move a message to Trash. |
| apply_rule | apply_rule(rule: str) -> int |
Trash all messages matching rule. Returns count. |
| run_cleanup | run_cleanup() -> dict |
Apply all configured cleanup rules. |
| process | process(context: dict) -> dict |
Workflow entry point. |
| run_workflow_direct | run_workflow_direct(guid: str, selector: str) -> str |