
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@robinpath/gmail
Advanced tools
Gmail integration — list/search messages, send email, manage labels, threads, and drafts via the Gmail REST API. Supports OAuth2 access tokens (easiest) or service-account with Domain-Wide Delegation.
Gmail module for RobinPath.
The gmail module lets you:
All functions are callable directly from RobinPath scripts with a simple, consistent API.
robinpath add @robinpath/gmail
1. Set up credentials
gmail.setCredentials "your-credentials"
2. List/search messages
gmail.listMessages
| Function | Description |
|---|---|
gmail.setCredentials | Configure Gmail OAuth2 credentials. |
gmail.listMessages | List/search messages |
gmail.getMessage | Get message details |
gmail.sendEmail | Send a plain text email |
gmail.trashMessage | Move message to trash |
gmail.untrashMessage | Remove from trash |
gmail.deleteMessage | Permanently delete message |
gmail.modifyLabels | Add/remove labels |
gmail.markAsRead | Mark as read |
gmail.markAsUnread | Mark as unread |
gmail.listLabels | List all labels |
gmail.createLabel | Create a label |
gmail.createDraft | Create a draft |
gmail.listDrafts | List drafts |
gmail.sendDraft | Send a draft |
gmail.deleteDraft | Delete a draft |
gmail.getProfile | Get user profile |
gmail.listMessages
gmail.getMessage
gmail.sendEmail
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/gmail";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
gmail.setCredentials "your-credentials"
gmail.listMessages
`);
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
@robinpath/google-sheets — Google Sheets module for complementary functionality@robinpath/google-calendar — Google Calendar module for complementary functionality@robinpath/google-contacts — Google Contacts module for complementary functionality@robinpath/google-forms — Google Forms module for complementary functionality@robinpath/outlook — Outlook module for complementary functionalityMIT
FAQs
Gmail integration — list/search messages, send email, manage labels, threads, and drafts via the Gmail REST API. Supports OAuth2 access tokens (easiest) or service-account with Domain-Wide Delegation.
The npm package @robinpath/gmail receives a total of 11 weekly downloads. As such, @robinpath/gmail popularity was classified as not popular.
We found that @robinpath/gmail demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.