Gmail Daemon
Fast Gmail operations via Google API.
Installation
Authentication
The Gmail daemon uses OAuth2. On first run, you'll be prompted to authorize access.
Credentials are stored in ~/.fgp/services/gmail/credentials.json.
Methods
gmail.list
List emails from inbox.
gmail.read
Read a specific email.
gmail.send
Send an email.
{
"method": "gmail.send",
"params": {
"to": "recipient@example.com",
"subject": "Hello",
"body": "Message content"
}
}
gmail.search
Search emails.
CLI Examples
# List recent emails
fgp call gmail list
# Search
fgp call gmail search "is:unread"
# Send
fgp call gmail send --to "user@example.com" --subject "Hi" --body "Hello!"
Status
Beta - Core operations work, advanced features in progress.