
Product
Socket Now Protects the Firefox Extension Ecosystem
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.
usrcp-gmail
Advanced tools
Gmail capture adapter for USRCP - polls the configured user's SENT messages and appends them to the local ledger
Capture-only Gmail adapter for USRCP. Polls the configured user's
Gmail for messages they sent and appends them to the local ledger
as email_sent entries.
The cloud sees nothing from this adapter; ledger writes only. The ledger encrypts at rest under the same master key as the rest of USRCP.
internalDate cursor.Each ledger entry:
domain: configurable (default email)intent: email_sentoutcome: successdetail: full message metadata (body capped at 48 KiB so the
serialised detail stays under the ledger's 64 KiB envelope cap).tags: ["gmail", "email", "sent"]channel_id: Gmail threadId (so getRecentEventsByChannel
returns the thread once we capture replies in a future PR).gmail:message:<sha256(id)[:32]> (re-running the
poller is a no-op; long imported-message IDs are handled).Same OAuth posture as usrcp-google-calendar: Google has no
"personal API key" shortcut for user mail data, so the wizard takes
three secrets the user gets out-of-band.
cd packages/usrcp-gmail
npm install
npm run build
usrcp setup --adapter=gmail
The wizard prompts for client_id + client_secret and then asks
whether to authorise via browser (default Yes). The browser flow
opens a localhost listener, prints the Google sign-in URL, captures
the redirect, and persists the refresh token automatically; no copy /
paste from the OAuth Playground.
If you can't open a browser from this machine (remote shell, CI, etc.), answer "no" and the wizard falls back to the manual OAuth-Playground path:
https://www.googleapis.com/auth/gmail.readonly.refresh_token and paste it into the wizard.The wizard validates the credentials against users.getProfile
before persisting, so a bad value fails fast.
usrcp-gmail
# or: USRCP_PASSPHRASE=<pp> usrcp-gmail
The poller logs each tick that captured or skipped any messages.
Stored at ~/.usrcp/gmail-config.json (mode 0600):
| Field | Type | Notes |
|---|---|---|
oauth_client_id | string | From step 1. Plaintext (not sensitive). |
oauth_client_secret | string | Encrypted at rest as enc:<base64> under the USRCP global key. |
refresh_token | string | Encrypted at rest as enc:<base64> under the USRCP global key. Reading disk without unlocking the master passphrase cannot recover the token. |
domain | string | USRCP domain to write events under. |
poll_interval_s | number | Seconds; 60-3600. Default 600 (10 min). |
last_synced_at | string | ISO; managed by the poller. |
Pre-#54 configs with plaintext secrets are still readable; the first save auto-migrates them into the encrypted envelope.
thread_id so a follow-up PR can group them; v0 records each
message independently.~/.ssh/id_rsa).stream_events entries; ledger only).FAQs
Gmail capture adapter for USRCP - polls the configured user's SENT messages and appends them to the local ledger
The npm package usrcp-gmail receives a total of 21 weekly downloads. As such, usrcp-gmail popularity was classified as not popular.
We found that usrcp-gmail demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.

Research
/Security News
Socket uncovered 77 linked Firefox extensions, including 40 that steal wallet secrets or credentials and 37 deceptive sports-score shells.