agentleFS
aspose-emailaspose-email/agentic-net-examples/read-and-export-zimbra-tgz-files/AGENTS.md

agentic-net-examples / read-and-export-zimbra-tgz-files

AGENTS.md2 starsChanged 7 months agoMITView on GitHub

C# examples for read-and-export-zimbra-tgz-files 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 78

≈ “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 - read-and-export-zimbra-tgz-files

Persona

You are a C# developer working in the read-and-export-zimbra-tgz-files category. This folder contains standalone C# examples for this category. See the root AGENTS.md for repository-wide conventions.

Scope

  • Examples for read-and-export-zimbra-tgz-files.
  • Files are standalone .cs examples stored directly in this folder.

Required Namespaces

  • using System; (30 file(s))
  • using Aspose.Email; (30 file(s))
  • using System.IO; (27 file(s))
  • using Aspose.Email.Storage.Zimbra; (19 file(s))
  • using Aspose.Email.Clients.Exchange; (8 file(s))
  • using Aspose.Email.Clients.Exchange.Dav; (6 file(s))
  • using Aspose.Email.Mapi; (3 file(s))
  • using System.Net; (2 file(s))
  • using Aspose.Email.Clients.Exchange.WebService; (2 file(s))
  • using Aspose.Email.PersonalInfo; (2 file(s))
  • using System.IO.Compression; (2 file(s))
  • using System.Collections.Generic; (2 file(s))
  • using Aspose.Email.Storage.Pst; (2 file(s))
  • using System.Threading; (2 file(s))
  • using System.Threading.Tasks; (2 file(s))
  • using System.Text; (1 file(s))
  • using System.Diagnostics; (1 file(s))
  • using System.Linq; (1 file(s))

Files in this folder

FileDescription
apply-a-naming-convention-that-prefixes-exported-filenames-with-their-folder-hierarchy-for-clarity.csapply a naming convention that prefixes exported filenames with their folder hierarchy for clarity
call-gettotalitemscount-on-the-tgzreader-instance-to-retrieve-total-email-item-count.cscall gettotalitemscount on the tgzreader instance to retrieve total email item count
configure-tgzreader-with-a-custom-buffer-size-to-improve-performance-on-large-tgz-files.csconfigure tgzreader with a custom buffer size to improve performance on large tgz files
create-a-logging-mechanism-that-records-start-and-end-timestamps-for-each-folder-processed.cscreate a logging mechanism that records start and end timestamps for each folder processed
create-a-unit-test-verifying-gettotalitemscount-returns-expected-number-for-a-sample-tgz.cscreate a unit test verifying gettotalitemscount returns expected number for a sample tgz
create-a-wrapper-class-that-abstracts-common-tgzreader-operations-for-simplified-usage.cscreate a wrapper class that abstracts common tgzreader operations for simplified usage
detect-and-skip-duplicate-messages-during-export-by-comparing-message-ids-stored-in-a-hash-set.csdetect and skip duplicate messages during export by comparing message ids stored in a hash set
develop-a-console-application-that-accepts-tgz-file-path-and-destination-folder-as-arguments.csdevelop a console application that accepts tgz file path and destination folder as arguments
dispose-the-tgzreader-instance-in-a-finally-block-to-release-resources-properly.csdispose the tgzreader instance in a finally block to release resources properly
export-all-messages-to-a-target-directory-using-exportto-while-preserving-folder-structure.csexport all messages to a target directory using exportto while preserving folder structure
extract-and-save-email-attachments-to-a-separate-folder-while-preserving-original-email-folder-hierarchy.csextract and save email attachments to a separate folder while preserving original email folder hierarchy
extract-and-store-each-message-folder-path-to-preserve-original-mailbox-hierarchy.csextract and store each message folder path to preserve original mailbox hierarchy
generate-a-csv-report-listing-each-email-subject-folder-and-export-path-after-processing.csgenerate a csv report listing each email subject folder and export path after processing
handle-ioexception-and-other-exceptions-that-may-occur-while-reading-or-exporting-tgz-files.cshandle ioexception and other exceptions that may occur while reading or exporting tgz files
implement-a-retry-policy-that-attempts-to-re-export-a-message-up-to-three-times-on-transient-failures.csimplement a retry policy that attempts to re export a message up to three times on transient failures
implement-cancellation-support-using-cancellationtoken-to-abort-export-operation-on-user-request.csimplement cancellation support using cancellationtoken to abort export operation on user request
implement-error-handling-that-continues-processing-remaining-messages-when-a-single-export-fails.csimplement error handling that continues processing remaining messages when a single export fails
integrate-tgzreader-into-an-email-migration-workflow-moving-messages-from-zimbra-backup-to-target-system.csintegrate tgzreader into an email migration workflow moving messages from zimbra backup to target system
iterate-through-all-messages-using-the-tgzreader-iterator-to-process-each-email.csiterate through all messages using the tgzreader iterator to process each email
load-a-zimbra-tgz-backup-file-with-tgzreader-and-confirm-successful-initialization.csload a zimbra tgz backup file with tgzreader and confirm successful initialization
log-each-message-subject-property-during-iteration-for-auditing-purposes.cslog each message subject property during iteration for auditing purposes
log-original-folder-path-and-new-file-path-for-each-exported-email-to-ensure-traceability.cslog original folder path and new file path for each exported email to ensure traceability
measure-and-output-total-execution-time-for-reading-and-exporting-the-tgz-archive.csmeasure and output total execution time for reading and exporting the tgz archive
provide-an-option-to-compress-exported-emails-into-a-new-tgz-archive-after-extraction-completes.csprovide an option to compress exported emails into a new tgz archive after extraction completes
read-only-email-headers-skipping-bodies-to-quickly-generate-a-summary-of-the-tgz-archive.csread only email headers skipping bodies to quickly generate a summary of the tgz archive
use-async-await-pattern-to-read-tgz-archive-and-export-messages-without-blocking-the-ui-thread.csuse async await pattern to read tgz archive and export messages without blocking the ui thread
use-linq-to-filter-messages-whose-subject-contains-a-keyword-before-exporting-them.csuse linq to filter messages whose subject contains a keyword before exporting them
validate-that-exported-email-files-retain-original-timestamps-by-comparing-with-source-metadata.csvalidate that exported email files retain original timestamps by comparing with source metadata
validate-that-the-number-of-exported-files-matches-the-total-item-count-reported-by-gettotalitemscount.csvalidate that the number of exported files matches the total item count reported by gettotalitemscount
write-a-script-to-process-multiple-tgz-files-in-a-directory-exporting-each-to-its-own-subfolder.cswrite a script to process multiple tgz files in a directory exporting each to its own subfolder

Category Statistics

  • Total examples: 30

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.