Rag.NET.DataProviders.Gmail
1.8.2
dotnet add package Rag.NET.DataProviders.Gmail --version 1.8.2
NuGet\Install-Package Rag.NET.DataProviders.Gmail -Version 1.8.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Rag.NET.DataProviders.Gmail" Version="1.8.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Rag.NET.DataProviders.Gmail" Version="1.8.2" />
<PackageReference Include="Rag.NET.DataProviders.Gmail" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Rag.NET.DataProviders.Gmail --version 1.8.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Rag.NET.DataProviders.Gmail, 1.8.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Rag.NET.DataProviders.Gmail@1.8.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Rag.NET.DataProviders.Gmail&version=1.8.2
#tool nuget:?package=Rag.NET.DataProviders.Gmail&version=1.8.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Rag.NET.DataProviders.Gmail
Part of Rag.NET — a modular RAG pipeline for .NET built on Microsoft.Extensions.AI. Ships as 74 packages; install only what you call. Documentation · Choosing packages
Gmail connector for Rag.NET ingestion: reads a mailbox over IMAP with MailKit and OAuth2
(SaslMechanismOAuth2), emitting each message as plain text and resuming incrementally
from an IMAP UniqueId watermark.
Install
dotnet add package Rag.NET.DataProviders.Gmail
Setup
using Microsoft.Extensions.DependencyInjection;
using Rag.NET.DataProviders;
using Rag.NET.DataProviders.Gmail;
var tokenProvider = new OAuthClientCredentialsTokenProvider(
tokenEndpoint: "https://oauth2.googleapis.com/token",
clientId: "my-client-id.apps.googleusercontent.com",
clientSecret: Environment.GetEnvironmentVariable("GMAIL_CLIENT_SECRET")!,
scopes: ["https://mail.google.com/"]);
services.AddGmailDataProvider(tokenProvider, opts =>
{
opts.UserName = "user@example.com"; // the mailbox to authenticate as
opts.DeltaToken = savedUidWatermark; // IMAP UniqueId; null = full mailbox
});
Example
using Microsoft.Extensions.DependencyInjection;
using Rag.NET.Abstractions;
using Rag.NET.DataProviders;
using Rag.NET.Models;
var provider = sp.GetRequiredService<IFileContentProvider>();
var result = await pipeline.IngestFromProviderAsync(provider, new ProviderId("gmail"), hashStore);
Console.WriteLine($"Ingested {result.Ingested} messages");
Full guide
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- MailKit (>= 4.18.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.15)
- Rag.NET.DataProviders (>= 1.8.2)
- System.Security.Cryptography.Pkcs (>= 10.0.15)
-
net11.0
- MailKit (>= 4.18.2)
- Rag.NET.DataProviders (>= 1.8.2)
- System.Security.Cryptography.Pkcs (>= 10.0.15)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.8.2 | 0 | 11/14/2026 |
| 1.8.1 | 0 | 11/14/2026 |
| 1.8.0 | 44 | 11/14/2026 |
| 1.6.0 | 89 | 11/10/2026 |
| 1.5.0 | 90 | 11/9/2026 |
| 1.4.1 | 84 | 11/9/2026 |
| 1.4.0 | 87 | 11/8/2026 |
| 1.3.10 | 84 | 11/8/2026 |
| 1.3.9 | 89 | 11/7/2026 |
| 1.3.8 | 84 | 11/6/2026 |
| 1.3.7 | 91 | 11/2/2026 |
| 1.3.6 | 95 | 11/2/2026 |
| 1.3.5 | 95 | 11/1/2026 |
| 1.3.4 | 97 | 10/30/2026 |
| 1.3.2 | 106 | 10/26/2026 |
| 1.3.1 | 96 | 10/25/2026 |
| 1.3.0 | 102 | 10/22/2026 |
| 1.2.0 | 99 | 10/22/2026 |
| 1.1.3 | 99 | 10/20/2026 |
| 1.1.2 | 108 | 10/19/2026 |
Loading failed