Agentic batch 20260705_142952_369917_c0ab6b5c - #222
Open
agent-aspose-email-examples wants to merge 188 commits into
Open
Agentic batch 20260705_142952_369917_c0ab6b5c#222agent-aspose-email-examples wants to merge 188 commits into
agent-aspose-email-examples wants to merge 188 commits into
Conversation
…g-original-file-timestamps-in-metadata.cs
…a-folder-hierarchy-based-on-filenames.cs
…aintaining-the-original-folder-hierarchy-on-disk.cs
…mplate-that-adds-a-company-header-to-each-page.cs
…-by-organization-and-creating-separate-files-per-group.cs
…eml-with-standardized-subject-prefixes.cs
…g-pdf-and-store-them-in-a-timestamped-archive.cs
…oth-eml-and-msg-formats-simultaneously.cs
…-file-named-after-the-original-mailbox.cs
…ts-with-inline-attachment-rendering.cs
…riginal-attachments-as-clickable-icons-within-the-document.cs
…-file-preserving-attendees-and-time-zone-information.cs
…ned-image-attachments-for-searchable-text.cs
…visual-representation-of-the-digital-signature.cs
…ing-images-with-descriptive-alt-text-placeholders.cs
…quality-settings-to-balance-file-size-and-clarity.cs
…urces-to-create-a-single-self-contained-file.cs
…d-images-are-retained-as-attachments.cs
…mlformatoptions-before-saving.cs
…while-embedding-images-as-separate-attachments.cs
…-original-character-encoding.cs
…tlook-mail-merge-operations.cs
…s-to-produce-a-single-portable-email-file.cs
…-while-retaining-attachment-filenames-for-reference.cs
…e-retaining-visual-appearance-of-interactive-elements.cs
…-as-author-title-and-subject-during-export.cs
…ty-so-links-remain-clickable-in-the-resulting-document.cs
…-screen-readers-to-interpret-document-structure.cs
…hile-preserving-line-breaks-and-spacing.cs
…ocess-does-not-exceed-allocated-thresholds.cs
…potential-bottlenecks-on-slow-storage.cs
…ding-for-the-same-mbox-file.cs
…bytes-for-performance-analysis.cs
…-of-pst-subfolders-during-conversion.cs
…ing-batch-size-signature-removal-and-output-path.cs
…ive-memory-consumption.cs
…ignature-flag-ensuring-clean-pst-content.cs
…or-the-loaded-mbox-file.cs
…ne-thousand-messages-to-manage-memory.cs
…n-and-store-it-in-a-file.cs
…priate-decryption-passwords-in-load-options.cs
…ternative-bodies-to-ensure-correct-part-selection.cs
…eading-large-mbox-files.cs
…riting-pst-entries-concurrently-for-performance.cs
…efore-adding-them-to-the-pst-file.cs
…ptions-properties-for-advanced-user-configuration.cs
…rage-and-enumerating-its-folder-hierarchy.cs
…are-preserved-correctly-in-pst.cs
…-filenames-after-conversion-properly.cs
…ersion-without-errors.cs
…hronous-reading-for-audit-purposes.cs
…from-a-sample-mbox-to-a-valid-pst-file.cs
…-for-fast-scanning-without-loading-full-mailmessage-objects.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated submission from agentic runner.
Change summaries (LLM):
Add batch conversion of .mht/.mhtml files to .eml using Aspose.Email.MailMessage.Load/Save.
Preserve original file timestamps by assigning MailMessage.Date from File.GetLastWriteTime.
Validate input folder existence and create output folder with robust error handling.
Merge .mht and .mhtml file lists into a single array for unified processing.
Wrap each file conversion in its own try/catch to isolate errors and continue batch.
Include safety placeholders for logging, permission checks, and secure path handling.
Added EML‑to‑MSG conversion demo using Aspose.Email
Demonstrates MailMessage.Load with EmlLoadOptions (PreserveTnefAttachments, PreserveEmbeddedMessageFormat)
Shows placeholder EML creation when source file is missing (safe file‑write guard)
Converts and saves to MSG via MailMessage.Save with SaveOptions.DefaultMsg
Wraps all I/O in try/catch blocks for robust error handling.
Added batch conversion of .msg files to HTML with custom header
Uses Aspose.Email.MailMessage.Load and HtmlSaveOptions (ResourceRenderingMode.EmbedIntoHtml)
Iterates input directory, creates output folder if missing
Prepends user‑defined HTML header to each generated page
Includes try/catch for directory creation, file processing, and unexpected errors
Safety: validates input path existence and handles I/O exceptions.
Added batch processing of *.mbox files to extract VCF attachments and group contacts by organization.
Uses Aspose.Email MboxStorageReader with MboxLoadOptions to read messages and VCardContact.Load to parse VCF data.
Aggregates contacts in a case‑insensitive Dictionary<string, List> keyed by vcard.Organization.
Creates per‑organization subfolders under the output directory and saves each contact as a unique .vcf file.
Includes folder existence checks, try/catch blocks for I/O and parsing errors, and console error reporting.
Added batch conversion of .ics files to .eml using Aspose.Email.Calendar.Appointment.Load → Appointment.ToMailMessage → MailMessage.Save.
Implements directory validation and creation for input (“InputIcs”) and output (“OutputEml”) paths.
Iterates over *.ics files, standardizes subject with “[Converted]” prefix before saving.
Wraps per‑file processing in try/catch to isolate failures and continue the batch.
Provides console error handling for missing directories, creation failures, and unexpected exceptions.
Add batch processing of .eml files → PDF conversion using Aspose.Email.MailMessage.Save
Use EmlLoadOptions to preserve embedded messages and TNEF attachments during load
Generate intermediate PDFs in a temp folder and package them with System.IO.Compression.ZipArchive
Create a timestamped ZIP archive in an output directory after verifying input/temp/output paths
Wrap conversion, archiving, and cleanup in try/catch blocks with console error reporting
// TODO: validate and secure file paths, add throttling for large file sets for production safety
Added batch conversion of .mht/.mhtml files to .eml and .msg using Aspose.Email.
Uses MailMessage.Load to read each MHTML and Save with EmlSaveOptions / MsgSaveOptions.
Implements folder validation, creates output directory, and iterates files with extension filter.
Includes per‑file try/catch for robust error reporting.
// TODO: Add logging and progress reporting.
// TODO: Validate file size and handle large attachments safely.