| name | proton-cli |
| description | Proton CLI local email indexing and search pipeline. |
| metadata | {"openclaw":{"emoji":"✉️","requires":{"bins":["/Users/michaelahern/proton_cli/bin/proton-mail"]}}} |
Proton CLI Email Indexing & Search
Use proton-mail (located at /Users/michaelahern/proton_cli/bin/proton-mail) to interact with the local email database.
Status
Check status:
source ~/.zprofile && zsh /Users/michaelahern/proton_cli/bin/proton-mail status
Ingesting Emails
Dry-run:
source ~/.zprofile && zsh /Users/michaelahern/proton_cli/bin/proton-mail ingest --mailbox INBOX --limit 1 --dry-run
Real ingest:
source ~/.zprofile && zsh /Users/michaelahern/proton_cli/bin/proton-mail ingest --mailbox INBOX --limit 25
Searching Emails
Query search:
source ~/.zprofile && zsh /Users/michaelahern/proton_cli/bin/proton-mail search "query" --limit 5
Deleting Emails (durable)
To permanently delete emails from both the Proton Mail server (via IMAP \Deleted + EXPUNGE) and the local PostgreSQL database (cascade delete on chunks/entities):
Dry-run (check what would be deleted):
source ~/.zprofile && zsh /Users/michaelahern/proton_cli/bin/proton-mail delete --delete-subject-contains "subject key" --dry-run
Real deletion:
source ~/.zprofile && zsh /Users/michaelahern/proton_cli/bin/proton-mail delete --delete-subject-contains "subject key"
Available options:
--delete-subject "exact subject" : Deletes by exact subject (case-insensitive).
--delete-subject-contains "keyword" : Deletes by substring match in subject.
--delete-message-id "<id>" : Deletes a specific email by Message-ID.
--uid <UID> : Deletes an email by its IMAP UID.
--mailbox <Name> : Target mailbox (default: INBOX).
Configuration
Path requirement: /Users/michaelahern/proton_cli/bin/proton-mail
Le chemin du bin est correct. Le script nécessite d'importer le .zprofile pour avoir le PATH complet incluant homebrew/psql.