agentleFS
aspose-emailaspose-email/agentic-net-examples/AGENTS.md

agentic-net-examples

AGENTS.md2 starsChanged 7 months agoMITView on GitHub

AI-friendly C# code examples for Aspose.Email for .NET

The file

We split this AGENTS.md into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When working in this repository:

    line 15
  2. Very specific:

    All examples must compile and run with dotnet build and dotnet run on net8.0.

    line 17
  3. Distinctive:

    Follow the conventions and anti-patterns below exactly.

    line 18
  4. Distinctive:

    Use explicit types for Aspose objects when clarity is needed.

    line 44
  5. Very specific:

    Create multi-file projects.

    line 52
  6. Very specific:

    Use MailMessage/MapiMessage appropriately for MIME vs MAPI scenarios.

    line 62
  7. Very specific:

    Prefer SecurityOptions.Auto for SMTP/IMAP/POP TLS negotiation.

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

Boundaries

✅ Always

  • Use explicit types for Aspose objects when clarity is needed.
  • Dispose SmtpClient, ImapClient, Pop3Client, streams, and messages with using where applicable.

⚠️ Ask First

  • Adding new NuGet dependencies besides Aspose.Email.
  • Changing shared templates or pipeline settings.

🚫 Never

  • Create multi-file projects; keep each example in one .cs file.
  • Hardcode credentials, secrets, or license keys.
  • Omit required namespaces—prefer fully qualified names if ambiguity arises.

Testing Guide

  • Build: dotnet build --configuration Release --verbosity minimal
  • Run: dotnet run Success = exit code 0 and no CS#### compiler errors.

Domain Knowledge (Email-specific)

  • Use MailMessage/MapiMessage appropriately for MIME vs MAPI scenarios.
  • Prefer SecurityOptions.Auto for SMTP/IMAP/POP TLS negotiation.
  • Save MSG with SaveOptions.DefaultMsgUnicode to preserve UTF-8 content.
<!-- AUTOGENERATED:START -->
DateRun IDBranch/Commit
2026-09-14autoexamples/batch-auto
<!-- AUTOGENERATED:END -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.