# now-email > Gmail integration for NOW system. Read inbox, search emails, view threads via CLI. REQUIRES USER CONFIRMATION before any send operation. Has two accounts: ravindra.s@wheelocity.com (WORK) and ravindrabarthwal.99@gmail.com (PERSONAL). Triggers on: email, inbox, gmail, check email, unread, search emails, mail. - Author: Ravindra Barthwal - Repository: ravindrabarthwal/life - Version: 20260201123150 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/ravindrabarthwal/life - Web: https://mule.run/skillshub/@@ravindrabarthwal/life~now-email:20260201123150 --- --- name: now-email description: "Gmail integration for NOW system. Read inbox, search emails, view threads via CLI. REQUIRES USER CONFIRMATION before any send operation. Has two accounts: ravindra.s@wheelocity.com (WORK) and ravindrabarthwal.99@gmail.com (PERSONAL). Triggers on: email, inbox, gmail, check email, unread, search emails, mail." --- # NOW Email Skill Manages Gmail operations with multi-account support via CLI. --- ## MANDATORY CONFIRMATION RULES **NEVER send an email without explicit user confirmation.** ### Before ANY Send Operation: 1. Draft the complete email 2. Present the confirmation template below 3. **WAIT** for user to type 'yes' 4. Only then execute the send operation ### Send Email Confirmation Template ``` CONFIRM EMAIL SEND: From: [account email] ([WORK/PERSONAL]) To: [recipient emails] CC: [cc emails or "None"] Subject: [subject line] Body: --- [full email body - show complete text] --- Type 'yes' to send this email, or 'no' to cancel: ``` --- ## Account Configuration ### Configured Accounts | Account | Email | Use For | |---------|-------|---------| | **WORK** | `ravindra.s@wheelocity.com` | Professional correspondence | | **PERSONAL** | `ravindrabarthwal.99@gmail.com` | Personal correspondence | ### Account Selection Logic **For Sending:** Use **WORK** (`ravindra.s@wheelocity.com`) for: - Emails to colleagues/clients - Wheelocity business communications - Professional networking - Work-related follow-ups Use **PERSONAL** (`ravindrabarthwal.99@gmail.com`) for: - Emails to family/friends - Personal services (bank, insurance, doctors) - Side projects - Personal subscriptions **For Reading:** - "Check my work email" → Filter to WORK account - "Check my personal email" → Filter to PERSONAL account - "Check my email" (no qualifier) → Show all accounts **When unclear**: Always ask: > "Should I send this from your work email (ravindra.s@wheelocity.com) or personal email (ravindrabarthwal.99@gmail.com)?" --- ## CLI Location All commands use: `./tools/now/bin/now` ## Quick Reference | Action | Command | |--------|---------| | View inbox (all accounts) | `./tools/now/bin/now email` | | Unread emails | `./tools/now/bin/now email --query "is:unread"` | | Search emails | `./tools/now/bin/now email --query "from:user@example.com"` | | By label | `./tools/now/bin/now email --labels "INBOX,IMPORTANT"` | | Single account | `./tools/now/bin/now email --account ` | | Auth status | `./tools/now/bin/now auth status` | | List accounts | `./tools/now/bin/now auth list` | --- ## Read Emails ### View Inbox ```bash ./tools/now/bin/now email ``` ### View Unread Emails ```bash ./tools/now/bin/now email --query "is:unread" ``` ### Search Emails ```bash # From specific sender ./tools/now/bin/now email --query "from:user@example.com" # Subject contains text ./tools/now/bin/now email --query "subject:meeting" # Has attachments ./tools/now/bin/now email --query "has:attachment" # Recent emails ./tools/now/bin/now email --query "newer_than:7d" ``` ### Filter by Account ```bash # Get account IDs first ./tools/now/bin/now auth list # Then filter ./tools/now/bin/now email --account ``` ### Limit Results ```bash ./tools/now/bin/now email --max-results 20 ``` --- ## Gmail Search Syntax | Query | Description | |-------|-------------| | `is:unread` | Unread emails | | `is:starred` | Starred emails | | `from:user@example.com` | From specific sender | | `to:user@example.com` | Sent to specific recipient | | `subject:meeting` | Subject contains "meeting" | | `has:attachment` | Has attachments | | `newer_than:7d` | Last 7 days | | `older_than:1m` | Older than 1 month | | `label:important` | Has label | Combine queries: `is:unread from:boss@company.com newer_than:1d` --- ## Authentication ### Check Auth Status ```bash ./tools/now/bin/now auth status ``` ### List All Accounts ```bash ./tools/now/bin/now auth list ``` ### Add/Re-authenticate Account ```bash ./tools/now/bin/now auth login ``` --- ## Troubleshooting | Error | Solution | |-------|----------| | `Not authenticated` | Run `./tools/now/bin/now auth login` | | `Account not found` | Run `./tools/now/bin/now auth list` to verify | | `No valid credentials` | Re-authenticate with `./tools/now/bin/now auth login` | --- ## Common Workflows ### "Check my inbox" ```bash ./tools/now/bin/now email ``` ### "Any unread emails?" ```bash ./tools/now/bin/now email --query "is:unread" ``` ### "Search for emails about X" ```bash ./tools/now/bin/now email --query "subject:X" ``` ### "Show me emails from Y" ```bash ./tools/now/bin/now email --query "from:Y" ``` ### "Check my work email only" ```bash # Get account ID for work email ./tools/now/bin/now auth list # Filter by that account ./tools/now/bin/now email --account ```