Skip to main content
Security brief

How RigBuy handles your email

Updated August 2026

RigBuy’s email integration connects your business mailbox to RigBuy. It powers three procurement features: supplier quote capture, RFQ sending and conversation tracking. RigBuy finds supplier email, detects quotes and extracts pricing. No one needs to forward emails manually.

RigBuy sends and receives through your own mailbox by design. Suppliers respond faster and more openly when they deal with a person at a company they know, not an anonymous system address: your relationships, your voice, your trust, without the manual work.

When you connect a mailbox, you trust RigBuy with access to your business’s email. We restrict our access. We minimize what we process and store. We protect the data that we keep. This brief describes these measures.

Email processing flow

Our email integration is fully automated. It follows a strict, multi-step process designed to protect your data. No RigBuy employee reads your email as part of this process. Ingestion runs end to end without human involvement.

  1. 1Mailbox (customer)Metadata-only webhook
  2. 2NylasRelevance filter (two gates)
  3. 3RigBuy integration layerFetch full message only if it passes
  4. 4RigBuy featuresForward for quote processing

The integration processes new messages in three stages.

  1. Metadata notification

    When a new message arrives, we receive a webhook notification. Before we store it, we reduce it to a strict allowlist: message identifiers, timestamps and threading headers. We do not store subjects, participant lists, snippets or bodies from the notification.

  2. Relevance filter (two gates)

    RigBuy evaluates each message against two gates and captures it only if it passes at least one:

    • Gate one, Known Conversation. The message belongs to a supplier conversation that RigBuy already tracks.
    • Gate two, Procurement Recognizer. The message matches known supplier contacts and domains. It also matches business-domain senders with procurement signals, such as a quote attachment.

    A message that passes neither gate is ignored. RigBuy does not ingest your inbox; it captures only messages that pass a gate.

  3. Content retrieval

    Only after a message passes a gate does RigBuy fetch its full body, which it uses for quote detection and extraction. At this stage, RigBuy fetches the message body only. It does not fetch attachments. Attachment files stay in your mailbox and are retrieved later, on demand, only if the message is converted into your procurement record.

RigBuy never processes messages in trash, spam or junk folders. The recognizer ignores newsletters (messages with a List-Unsubscribe header). It also ignores no-reply senders and messages between your own internal addresses.

Security approach

RigBuy runs as a multi-tenant SaaS built to keep your data isolated and protected.

  • Your mailbox credentials never touch RigBuy. The OAuth access and refresh tokens for your mailbox are held by Nylas, a SOC 2-audited email-API provider and vetted subprocessor. RigBuy stores only an opaque grant identifier, useless on its own, and never sees your password. RigBuy uses Nylas’s US data region.
  • Every record is scoped to your organization. Cross-tenant access is prevented structurally in the data model, not just filtered in application code.
  • Encryption in transit throughout. TLS protects all traffic between your browser and RigBuy, and between RigBuy and email providers.
  • Industry-standard practice for storage, access and retention. We follow recognized best practices for data security, access control and data retention, detailed below.
  • Independently reviewed by the platforms themselves. RigBuy is a Microsoft-verified publisher, and mailbox access is brokered by Nylas, which has passed Google’s security assessment for restricted Gmail access. The providers that own your mailboxes have each vetted this integration before it can request access.

Threat model

We considered two attack vectors when we designed the integration:

  • Compromise of account accessAn attacker who compromises RigBuy’s access to your mailbox could read your email.
  • Compromise of RigBuy’s storage and admin systemsAn attacker who compromises RigBuy could read retained email content in RigBuy’s systems.

To mitigate these vectors, we minimize the data that the integration accesses. We do not store data that we do not need. We delete stored data when we no longer need it. We restrict and audit internal access to the data that remains.

Mitigations

Access to your mailbox

RigBuy connects to Gmail and Outlook through Nylas, a specialized email-API provider, using the provider’s standard OAuth 2.0 flow. The mailbox owner connects each mailbox explicitly, on Google’s or Microsoft’s own consent screen. RigBuy never sees or stores your password.

  • RigBuy does not hold your OAuth tokens. Nylas holds the provider’s access and refresh tokens. RigBuy stores only an opaque grant identifier, useful only in combination with RigBuy’s own Nylas API credential. Nylas is a SOC 2-audited subprocessor. RigBuy uses Nylas’s US data region.
  • A single integration chokepoint. Every email-provider API call in RigBuy passes through one adapter class. No other code has a path to mailbox APIs. This shrinks the attack surface and puts all data access in one place that can be reviewed, tested and audited.
  • Authenticated webhooks. RigBuy verifies every inbound notification with an HMAC-SHA256 signature and constant-time comparison. The webhook endpoint is rate-limited. The OAuth connection flow uses signed, single-purpose state tokens. Each token expires after 10 minutes and is pinned to the provider that started the flow.
  • Write scope, by design. RigBuy requests send capability (for Gmail, the gmail.modify scope) so that RFQs go out from your own mailbox. Gmail connections also require RigBuy platform-admin approval before the OAuth flow can start.
  • Platform-verified before it can touch a mailbox. The Gmail scopes RigBuy uses are restricted scopes. Google requires any app using them to pass an independent annual security assessment (CASA) before granting access. Access is brokered through Nylas, which holds that verification. On the Microsoft side, RigBuy is a verified publisher, so your users see a confirmed publisher identity on the Microsoft consent screen.

Granting and revoking access

You control which mailboxes RigBuy can access, and you can disconnect at any time from within RigBuy. Because access runs through your provider’s standard OAuth, your Google Workspace or Microsoft 365 administrator can also revoke RigBuy/Nylas access directly from your own admin security console, with no involvement from RigBuy. You never depend on us to cut off access.

When you disconnect a mailbox, RigBuy offers disconnect and delete. This does more than revocation:

  1. RigBuy revokes the grant at Nylas, ending its access to the mailbox.
  2. RigBuy records the disconnection permanently. Email providers can occasionally send a delayed notification for a connection after it has ended. RigBuy keeps a small record of the closed connection so it recognizes any such late notification and discards it. That record stores only a one-way fingerprint of the old grant, never the grant itself. Reconnecting the same mailbox later starts a fresh connection and does not revive the old one.
  3. A deletion job purges captured messages, cached message content, raw stored messages and the attachment files in object storage. A recovery sweep restarts any interrupted deletion every 15 minutes until it completes.
  4. RigBuy blocks reconnection until cleanup completes. A new connection always starts clean.

Converted supplier conversations are different. These quotes and threads are part of your procurement record, your organization’s product data. Mailbox disconnection does not delete them, and they stay under your organization’s control. If you want this data removed, you can request deletion at any time.

Minimizing data processed

  • Capture is gated, not bulk. RigBuy captures a message only if it belongs to a tracked supplier conversation or matches the procurement recognizer. RigBuy ignores everything else and never fetches its content.
  • Metadata before content. RigBuy makes filtering decisions on identifiers, threading headers, sender information and attachment names. It fetches full bodies only after a message passes.
  • Attachments are fetched on demand. At capture time, RigBuy stores only attachment metadata: filename, type and size. It retrieves attachment content only when needed, for example at conversion into your procurement record.
  • Untrusted content is sanitized before AI processing. Before any email reaches our AI extraction pipeline, a sanitizer strips control characters and markup and caps the amount of text sent to the model. This defends against prompt injection: hidden instructions a supplier might slip into an email to manipulate the AI.

Minimizing data stored

RigBuy’s email integration does not store unnecessary data. RigBuy deletes stored data when it is no longer needed. Scheduled jobs enforce retention daily. Self-auditing checks detect any row that exceeds its window.

DataRetention
Webhook notificationsReduced to threading headers at processing time; rows purged after 30 days.
Unconverted captured messages (cached bodies)Content scrubbed after 90 days.
Admin-review-only captured messagesDeleted entirely after 30 days.
AI request logs (prompt and response text)Redacted after 30 days; cost and lineage metadata retained.
Raw email filesPermanently deleted after 90 days.
Converted supplier threads and quotesRetained; this is your procurement record (product data). Removable upon request.

After content is scrubbed, the data-model layer enforces the scrub marker. Every downstream reader, including attachment download, quote extraction and conversion, returns nothing. No reader can bypass retention.

Protecting stored data

  • All traffic is encrypted in transit. HTTPS is forced application-wide. All provider communication uses encrypted connections.
  • Data at rest is stored on encrypted managed infrastructure. Application secrets, including encryption keys, live in the deployment platform’s secret store. They are not in code or configuration files.
  • Organization scoping is enforced in the data model itself, below the application. Every email-derived record is bound to your organization at that layer, so cross-tenant access is structurally impossible regardless of what application code does.

Customer support access

  • Only at your request, to resolve a support case.
  • Access is time-limited, scoped and logged.
  • Want the full detail? Email security@onerule.ai.

AI processing

RigBuy uses large language models to detect and extract quotes from captured messages and attachments. The sanitizer described above processes all model inputs.

  • No second copy of your email. RigBuy logs every AI request with cost and lineage for accountability, but redacts the logged prompt and response text after 30 days. AI logs never become a permanent second copy of your email.

Features

Supplier quote capture

A supplier can reply with a quote in the email body or as a PDF, Excel or Word attachment. RigBuy detects the quote, extracts line-item pricing with AI and matches it against your BOM, so you can compare offers side by side. Detection runs only on messages that passed the capture gates described above.

Some captured messages cannot be matched to a supplier and project with high confidence. Rather than guess, RigBuy sets these aside in an Unmatched Mailbox for you to review inside your own workspace. They are never processed automatically, and no RigBuy employee reviews them; you decide whether each one belongs to a supplier and project, or should be discarded.

Sending RFQs from your mailbox

RigBuy sends RFQs and follow-ups from your own connected mailbox, so suppliers see and reply to your address. This is why the integration requests send capability. You control how much RigBuy does on your behalf:

  • Messages you send. You compose an RFQ or reply and send it. RigBuy can help you draft with AI, but you edit it and you send it. Nothing goes out until you do.
  • Follow-ups you approve. RigBuy can schedule follow-ups for outstanding RFQs. By default, each one is flagged for your approval first and reaches the supplier only after you approve it.
  • Automated follow-ups: opt-in, off by default. Your organization can enable automatic follow-up sending. When enabled, RigBuy sends scheduled follow-ups on your behalf without a per-message click, within limits your organization sets. This is disabled by default, and an administrator can turn it off at any time.

Whichever mode you use, sending is technically constrained by these controls:

  • One send path. All outbound mail goes through a single adapter, the same chokepoint as the rest of the integration. No other code in RigBuy can call the send API.
  • Bound to your mailbox grant. Every send is authorized against a specific connected mailbox and its grant. A send with no valid grant is rejected, and there is no path to silently send from a different mailbox.
  • Automated sends are capped. When automatic follow-ups are enabled, they are limited per supplier contact and per organization, and send only during business hours, so automation cannot turn into bulk or runaway sending.
  • You can cut it off unilaterally. Revoking access in your Google or Microsoft admin console ends send capability immediately, with no involvement from RigBuy.

Supplier conversation tracking

Replies within tracked supplier threads sync into RigBuy automatically. The quote keeps its full context: the conversation, the documents, the commitments. All stay attached to the procurement record. RigBuy transfers attachment files into your record only at conversion time.

Questions about this brief or our security practices? security@onerule.ai