agentleFS
aspose-emailaspose-email/agentic-net-examples/working-with-ibm-notes/AGENTS.md

agentic-net-examples / working-with-ibm-notes

AGENTS.md2 starsChanged 7 months agoMITView on GitHub

C# examples for working-with-ibm-notes using Aspose.Email for .NET

The file

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

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow root boundaries and testing guide.

    line 114

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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

AGENTS - working-with-ibm-notes

Persona

You are a C# developer working in the working-with-ibm-notes category. This folder contains standalone C# examples for this category. See the root AGENTS.md for repository-wide conventions.

Scope

  • Examples for working-with-ibm-notes.
  • Files are standalone .cs examples stored directly in this folder.

Required Namespaces

  • using System; (64 file(s))
  • using Aspose.Email; (64 file(s))
  • using System.IO; (63 file(s))
  • using Aspose.Email.Mapi; (42 file(s))
  • using Aspose.Email.Storage.Nsf; (20 file(s))
  • using System.Collections.Generic; (7 file(s))
  • using Aspose.Email.Storage.Pst; (5 file(s))
  • using System.Threading.Tasks; (3 file(s))
  • using System.Linq; (2 file(s))
  • using Aspose.Email.Clients; (2 file(s))
  • using Aspose.Email.Clients.Imap; (2 file(s))
  • using Aspose.Email.Calendar; (2 file(s))
  • using System.Threading; (2 file(s))
  • using System.Reflection; (1 file(s))
  • using System.Security.Cryptography; (1 file(s))
  • using Aspose.Email.PersonalInfo; (1 file(s))
  • using Aspose.Email.Tools.Search; (1 file(s))
  • using CancellationTokenSource cts = new CancellationTokenSource(); (1 file(s))
  • using Aspose.Email.Calendar.Recurrences; (1 file(s))
  • using System.Text.Json; (1 file(s))

Files in this folder

FileDescription
add-a-notesattachment-to-the-document-and-assign-the-msg-file-as-its-content.csadd a notesattachment to the document and assign the msg file as its content
call-enumeratemessages-to-obtain-an-iterator-over-all-messages-in-the-nsf-file.cscall enumeratemessages to obtain an iterator over all messages in the nsf file
check-the-notes-version-of-the-nsf-file-to-ensure-compatibility-with-version-7-or-higher.cscheck the notes version of the nsf file to ensure compatibility with version 7 or higher
combine-extracted-message-data-into-custom-net-objects-for-further-processing.cscombine extracted message data into custom net objects for further processing
configure-replication-parameters-for-processing-an-input-msg-file-to-ensure-accurate-message-duplication.csconfigure replication parameters for processing an input msg file to ensure accurate message duplication
construct-a-new-email-object-using-the-contents-of-an-input-msg-file-preserving-all-original-message-properties.csconstruct a new email object using the contents of an input msg file preserving all original message properties
create-a-batch-process-that-scans-a-folder-for-nsf-files-and-processes-each-one.cscreate a batch process that scans a folder for nsf files and processes each one
create-a-reusable-library-method-that-returns-a-list-of-message-objects-from-an-nsf-file.cscreate a reusable library method that returns a list of message objects from an nsf file
design-a-user-interface-form-that-accepts-msg-files-as-input-directly-for-processing.csdesign a user interface form that accepts msg files as input directly for processing
detect-lz1-compression-in-the-nsf-file-and-log-a-warning-if-unsupported.csdetect lz1 compression in the nsf file and log a warning if unsupported
detect-whether-a-given-file-is-in-nsf-format-before-opening-it.csdetect whether a given file is in nsf format before opening it
develop-a-command-line-tool-that-accepts-an-nsf-file-path-and-outputs-message-summaries.csdevelop a command line tool that accepts an nsf file path and outputs message summaries
dispose-notesstoragefacility-resources-after-processing-to-prevent-memory-leaks-in-the-application.csdispose notesstoragefacility resources after processing to prevent memory leaks in the application
document-the-limitations-of-handling-nsf-files-created-with-notes-versions-older-than-seven.csdocument the limitations of handling nsf files created with notes versions older than seven
encrypt-extracted-attachment-files-using-aes-before-writing-them-to-disk-for-security.csencrypt extracted attachment files using aes before writing them to disk for security
extract-a-contact-from-an-msg-file-and-save-it-as-a-vcf-vcard.csextract a contact from an msg file and save it as a vcf vcard
extract-all-attachments-from-a-message-and-save-them-to-a-specified-output-directory.csextract all attachments from a message and save them to a specified output directory
filter-enumerated-messages-by-sender-email-address-to-extract-only-relevant-communications.csfilter enumerated messages by sender email address to extract only relevant communications
filter-messages-by-subject-keyword-to-isolate-emails-containing-specific-terms-for-analysis.csfilter messages by subject keyword to isolate emails containing specific terms for analysis
generate-a-calendar-event-using-the-contents-of-an-input-msg-file-as-the-entry-source.csgenerate a calendar event using the contents of an input msg file as the entry source
generate-a-csv-file-containing-message-ids-subjects-and-sender-addresses-for-quick-review.csgenerate a csv file containing message ids subjects and sender addresses for quick review
generate-a-new-ibm-notes-database-using-an-msg-file-as-the-source-input.csgenerate a new ibm notes database using an msg file as the source input
generate-a-new-notes-document-using-an-msg-file-as-input-preserving-the-message-content-and-metadata.csgenerate a new notes document using an msg file as input preserving the message content and metadata
generate-a-new-task-object-based-on-the-provided-input-message-msg-for-subsequent-processing.csgenerate a new task object based on the provided input message msg for subsequent processing
generate-a-rich-text-rtf-file-from-an-input-msg-email-message-while-preserving-formatting.csgenerate a rich text rtf file from an input msg email message while preserving formatting
handle-messages-that-cannot-be-read-by-catching-exceptions-and-recording-error-details.cshandle messages that cannot be read by catching exceptions and recording error details
implement-a-progress-reporter-that-updates-after-each-message-is-processed-in-the-console.csimplement a progress reporter that updates after each message is processed in the console
implement-a-user-interface-view-that-accepts-msg-files-as-input-for-processing-and-display.csimplement a user interface view that accepts msg files as input for processing and display
implement-an-agent-that-accepts-a-msg-object-as-input-and-processes-it-according-to-defined-business-logic.csimplement an agent that accepts a msg object as input and processes it according to defined business logic
implement-asynchronous-enumeration-of-nsf-messages-to-improve-application-responsiveness-during-long-operations.csimplement asynchronous enumeration of nsf messages to improve application responsiveness during long operations
implement-cancellation-support-to-abort-nsf-processing-when-a-user-requests-termination.csimplement cancellation support to abort nsf processing when a user requests termination
implement-retry-logic-when-opening-an-nsf-file-that-may-be-temporarily-locked.csimplement retry logic when opening an nsf file that may be temporarily locked
instantiate-notesstoragefacility-with-the-nsf-file-path-to-prepare-for-enumeration.csinstantiate notesstoragefacility with the nsf file path to prepare for enumeration
instantiate-the-notesdocument-class-and-populate-its-fields-with-the-input-msg-to-create-a-new-notes-document.csinstantiate the notesdocument class and populate its fields with the input msg to create a new notes document
integrate-the-nsf-processing-module-into-an-existing-email-migration-pipeline-for-seamless-data-transfer.csintegrate the nsf processing module into an existing email migration pipeline for seamless data transfer
iterate-through-each-message-reading-its-subject-sender-address-and-received-date.csiterate through each message reading its subject sender address and received date
load-a-calendar-entry-from-an-msg-file-into-memory-for-further-processing-programmatically.csload a calendar entry from an msg file into memory for further processing programmatically
load-a-notes-document-by-its-unid-employing-the-notesdocument-class-to-read-the-provided-msg-file.csload a notes document by its unid employing the notesdocument class to read the provided msg file
load-a-notes-document-from-an-msg-file-using-its-unid-identifier-ensuring-accurate-retrieval-of-content.csload a notes document from an msg file using its unid identifier ensuring accurate retrieval of content
load-an-agent-using-an-msg-file-as-input-parsing-the-message-content-into-the-appropriate-object-model.csload an agent using an msg file as input parsing the message content into the appropriate object model
load-an-existing-ibm-notes-database-from-an-msg-file-into-application-memory-for-processing.csload an existing ibm notes database from an msg file into application memory for processing
load-an-msg-file-into-a-view-object-enabling-programmatic-access-to-its-contents-and-properties.csload an msg file into a view object enabling programmatic access to its contents and properties
load-and-parse-an-msg-attachment-to-access-its-message-properties-and-content-programmatically.csload and parse an msg attachment to access its message properties and content programmatically
log-detailed-information-about-messages-that-fail-to-read-due-to-lz1-compression-issues.cslog detailed information about messages that fail to read due to lz1 compression issues
log-the-total-number-of-messages-processed-from-each-nsf-file-for-reporting-purposes.cslog the total number of messages processed from each nsf file for reporting purposes
open-the-nsf-storage-in-read-only-mode-to-safely-access-message-data.csopen the nsf storage in read only mode to safely access message data
parse-the-msg-file-to-programmatically-extract-its-rich-text-body-content-for-subsequent-processing.csparse the msg file to programmatically extract its rich text body content for subsequent processing
persist-modifications-to-the-database-and-generate-an-msg-file-containing-the-updated-information.cspersist modifications to the database and generate an msg file containing the updated information
process-and-modify-rich-text-content-in-ibm-notes-msg-files-utilizing-the-notesrichtext-class.csprocess and modify rich text content in ibm notes msg files utilizing the notesrichtext class
programmatically-add-a-new-attachment-to-an-email-message-using-an-input-msg-file.csprogrammatically add a new attachment to an email message using an input msg file
provide-an-option-to-limit-the-maximum-number-of-messages-processed-per-nsf-file.csprovide an option to limit the maximum number of messages processed per nsf file
read-a-contact-from-an-msg-file-into-an-object-model-for-subsequent-processing.csread a contact from an msg file into an object model for subsequent processing
read-and-parse-an-input-msg-file-to-instantiate-the-corresponding-task-object-in-memory.csread and parse an input msg file to instantiate the corresponding task object in memory
read-and-parse-an-msg-file-to-access-its-form-data-within-the-application.csread and parse an msg file to access its form data within the application
read-and-parse-an-msg-file-to-instantiate-a-mail-message-object-for-processing.csread and parse an msg file to instantiate a mail message object for processing
read-replication-settings-from-an-msg-file-and-map-them-to-the-appropriate-configuration-objects.csread replication settings from an msg file and map them to the appropriate configuration objects
read-the-body-content-of-each-message-and-store-it-in-a-string-variable.csread the body content of each message and store it in a string variable
save-extracted-attachment-metadata-such-as-filename-and-size-into-a-database-table.cssave extracted attachment metadata such as filename and size into a database table
serialize-extracted-message-objects-to-json-for-integration-with-external-services.csserialize extracted message objects to json for integration with external services
use-a-using-statement-to-automatically-close-the-notesstoragefacility-after-processing.csuse a using statement to automatically close the notesstoragefacility after processing
use-parallel-processing-to-handle-multiple-nsf-files-concurrently-while-respecting-thread-safety.csuse parallel processing to handle multiple nsf files concurrently while respecting thread safety
validate-that-each-extracted-attachment-file-size-does-not-exceed-a-predefined-limit.csvalidate that each extracted attachment file size does not exceed a predefined limit
validate-that-the-extracted-email-body-does-not-contain-prohibited-html-tags-before-saving.csvalidate that the extracted email body does not contain prohibited html tags before saving
when-saving-the-parent-msg-file-attachments-are-automatically-persisted-within-the-resulting-output-message-file.cswhen saving the parent msg file attachments are automatically persisted within the resulting output message file

Category Statistics

  • Total examples: 64

General Tips

  • Follow root boundaries and testing guide.
  • Dispose client objects; avoid hardcoded secrets; prefer explicit types.
<!-- 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.