Agentic batch 20260513_143541#212
Merged
agent-aspose-email-examples merged 255 commits intoMay 14, 2026
Merged
Conversation
…message-during-workflow-transitions.cs
…-excel-highlighting-rows-with-missing-email-addresses.cs
…rdering-contacts-accordingly-before-export.cs
…rving-each-task-fields-in-separate-files.cs
…s-them-to-a-processed-folder.cs
…preserving-unique-member-information-only.cs
…ip-archive-before-saving.cs
…aving-the-email-to-pst.cs
…le-preserving-bold-and-italic-styles.cs
…pattern-ensuring-no-unintended-records-are-removed.cs
…formatoptions-rendertaskfields-enumeration.cs
…ult-outlook-formatting.cs
…api-enriching-location-data-with-latitude-and-longitude.cs
…-a-simple-list-for-quick-reference.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):
Added fallback creation of a minimal PST when missing using PersonalStorage.Create.
Opened PST with PersonalStorage.FromFile and retrieved the Inbox via GetPredefinedFolder.
Iterated messages with FolderInfo.EnumerateMessages and extracted each via PersonalStorage.ExtractMessage.
Added custom MAPI property “ProcessingStatus” using MapiMessage.AddCustomProperty (PT_UNICODE, Unicode bytes).
Saved changes back to the folder with FolderInfo.UpdateMessage and wrapped all steps in try/catch for safety.
Add custom Unicode MAPI property via Aspose.Email.Mapi (AddCustomProperty, PT_UNICODE).
Load and save .msg files using MapiMessage.Load/Save.
Create placeholder .msg if input missing (MapiMessage constructor).
Wrap file I/O and MAPI ops in try/catch for robust error handling.
Demonstrates processing timestamp tracking for each Outlook message.
Category: Outlook item manipulation – safe placeholder handling included.
Add MapiMessage creation with sender, recipient, subject, and body.
Use FollowUpManager.AddVotingButton to insert a "Finalize" voting button.
Calculate next Monday and apply FollowUpManager.SetFlag with start now and due next Monday.
Ensure output directory exists before saving the .msg file.
Wrap all operations in try/catch blocks for error handling.
[Safety] Validate email addresses and sanitize any user‑provided strings.
Added example for attaching a PDF to a MAPI task and saving as MSG
Uses Aspose.Email.Mapi: MapiTask, Attachments.Add(name, data)
Saves with TaskSaveFormat.Msg via task.Save(msgPath, …)
Demonstrates file existence check and read‑all‑bytes for PDF data
Wraps operations in try/catch blocks for robust error handling
Category: Outlook items – task creation with attachment.
Added Outlook example showing a "Proceed" voting button and a two‑day follow‑up flag.
Uses Aspose.Email.MailMessage → MapiMessage conversion.
Calls FollowUpManager.AddVotingButton and FollowUpManager.SetFlag with start/due dates.
Saves the message as .msg using SaveOptions.DefaultMsgUnicode and ensures output folder exists.
Wrapped in try/catch for basic error handling.
[License/Security placeholder] for Aspose.Email usage.
Added example for Outlook task handling – creates a weekly recurring task (Fridays) using ExchangeTask.
Utilizes WeeklyRecurrencePattern and TaskSaveFormat.Msg to save task as MSG.
Loads MSG via MailMessage.Load and exports to MHT with MhtSaveOptions.
Ensures output directories exist before file writes.
Wrapped in try/catch for error safety.
Demonstrates Aspose.Email.Calendar and Aspose.Email.Mapi APIs.
Added example for Outlook item manipulation – adds a voting button to a MAPI email and saves it.
Uses Aspose.Email.Mapi: MapiMessage creation, FollowUpManager.AddVotingButton, and message.Save.
Ensures output directory exists before writing the .msg file.
Wraps operations in try/catch and logs errors to console.
[Safety] Placeholder comment for handling sensitive email addresses and file paths.
Added audio reminder support using Aspose.Email.Calendar APIs