aspose-email-examples

A collection of standalone C# console examples for Aspose.Email for .NET, a library for working with email files and services.

In plain words
What is it for?
Use it to find examples for converting email formats, working with Gmail or Exchange, handling mailbox files, verifying email addresses, and other supported email tasks.
Why use it?
It gives developers validated examples that follow consistent rules, reducing the need to work out email-processing code from scratch.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/aspose-email/agentic-net-examples/agents-md
Clone the repo
git clone --depth 1 https://github.com/aspose-email/agentic-net-examples

Made for: Codex, OpenCode.

Per session 1,083 This file is loaded in full into every session.
When invoked 1,083 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01083 $0.01083
Opus 5 $0.00541 $0.00541
Sonnet 5 $0.00217 $0.00217
Haiku 4.5 $0.00108 $0.00108

Measured 2d ago against content hash 1f095c488ed1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

aspose-email-examples scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Aspose.Email for .NET Examples

AI-friendly repository containing validated C# examples for Aspose.Email for .NET.

Persona

You are a C# developer specializing in mail processing using Aspose.Email for .NET. When working in this repository:

  • Each .cs file is a standalone console app—no multi-file projects.
  • All examples must compile and run with dotnet build and dotnet run on net8.0.
  • Follow the conventions and anti-patterns below exactly.

Repository Overview

This repository currently contains 3083 working code examples across 17 categories.

Category Details

  • convert-between-formats — 135 examples. Guide: AGENTS.md
  • convert-thunderbird-mbox-files — 189 examples. Guide: AGENTS.md
  • programming-email-verification — 40 examples. Guide: AGENTS.md
  • programming-with-gmail — 142 examples. Guide: AGENTS.md
  • read-and-export-zimbra-tgz-files — 30 examples. Guide: AGENTS.md
  • working-with-amp-html-emails — 44 examples. Guide: AGENTS.md
  • working-with-exchange-ews-client — 557 examples. Guide: AGENTS.md
  • working-with-exchange-webdav-client — 156 examples. Guide: AGENTS.md
  • working-with-ibm-notes — 64 examples. Guide: AGENTS.md
  • working-with-imap-client — 303 examples. Guide: AGENTS.md
  • working-with-microsoft-graph-client — 38 examples. Guide: AGENTS.md
  • working-with-mime-messages — 343 examples. Guide: AGENTS.md
  • working-with-outlook-items — 511 examples. Guide: AGENTS.md
  • working-with-outlook-storage-files — 189 examples. Guide: AGENTS.md
  • working-with-pop3-client — 166 examples. Guide: AGENTS.md
  • working-with-smtp-client — 167 examples. Guide: AGENTS.md
  • zimbra — 9 examples. Guide: AGENTS.md

Read the full file on GitHub · 71 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 71 lines · 1,083 tokens per session scan A 1f095c488ed1

Subscribe to this mod's changes

aspose-email-examples is an instructions file published in the GitHub repository aspose-email/agentic-net-examples (2 stars, last pushed 1mo ago), licensed MIT. It adds 1,083 tokens to every session, about $0.0054 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

agentic-net-examples copilot-instructions.md

Instructions for aspose-pdf/agentic-net-examples, covering copilot instructions, when suggesting code in this repository, do not and where to look for context.

aspose-pdf/agentic-net-examples · 418 tokens

maui integration-tests.instructions.md

Guidance for GitHub Copilot when working with .NET MAUI integration tests.

dotnet/maui · 2,481 tokens

maui performance-hotpaths.instructions.md

Instructions for dotnet/maui, covering performance-critical path rules, hot paths in maui, allocation avoidance, caching and invalidation and collection iteration.

dotnet/maui · 441 tokens

cryptoexchange-net

Use CryptoExchange.Net abstractions when generating C#/.NET code that needs to work across MULTIPLE cryptocurrency exchanges (Binance + Bybit + OKX + Kraken + Coinbase + ...) — for arbitrage, best-execution routing, multi-exchange portfolio dashboards, exchange-agnostic trading bots, or comparison tools. Triggers on…

JKorf/CryptoExchange.Net · 2,291 tokens

kraken-net

Use Kraken.Net when generating C#/.NET code that interacts with the Kraken cryptocurrency exchange, including Spot REST, Spot WebSocket v2, Futures REST, Futures WebSocket, account data, market data, order placement, Kraken Earn, local order books, dependency injection, or CryptoExchange.Net SharedApis. Triggers on…

JKorf/Kraken.Net · 1,872 tokens

Kucoin.Net copilot-instructions.md

Instructions for JKorf/Kucoin.Net, covering copilot instructions for kucoin.net, use kucoin.net, not raw http, client setup, result handling and api structure.

JKorf/Kucoin.Net · 849 tokens