Work with some exciting new features and enhancements to empower your C# and VB.NET email processing apps on the Windows platform with Aspose.Email for .NET 24.6 (MSI).
Manage Microsoft Graph Tasks
.NET developers can now interact with tasks and task lists using the new APIs for creating, retrieving, updating, and deleting tasks within MS Graph. Please check out the following code example to learn how to manage MS Graph tasks in C#:
// List Tasks in a Task List
MapiTaskCollection tasks = graphClient.ListTasks("taskListId");
// Fetch Task
MapiTask task = graphClient.FetchTask("taskId");
// Create Task
var newTask = new MapiTask
{
Subject = "New Task",
DueDate = new DateTime(2023, 12, 31),
Status = MapiTaskStatus.NotStarted
};
MapiTask createdTask = graphClient.CreateTask(newTask, "taskListUri");
// Update Task
createdTask.Subject = "Updated Task Subject";
MapiTask updatedTask = graphClient.UpdateTask(createdTask);
// Update Task with UpdateSettings
var updateSettings = new UpdateSettings { SkipAttachments = true };
MapiTask updatedTaskWithSettings = graphClient.UpdateTask(createdTask, updateSettings);
Source*
Enhanced MBOX Splitting
With the latest .NET emailing API, it is now possible to cancel long-running MBOX split operations using the CancellationToken
parameter in the SplitInto
methods. Please refer to this code sample to learn how to use this feature on .NET Core and .NET Framework 4.5:
int partCount = 0;
var tokenSource = new CancellationTokenSource();
var mbox = new MboxrdStorageReader(fileName, new MboxLoadOptions { LeaveOpen = false });
// Subscribe to events
mbox.MboxFileCreated += (sender, e) =>
{
partCount++;
if (partCount >= 5)
tokenSource.Cancel();
};
System.Threading.Tasks.Task task = mbox.SplitInto(10000000, outputPath, tokenSource.Token);
task.Wait();
Source*
Bug Fixes and Other Enhancements
This release addresses several reported issues, including errors during VCF file loading, corrupted PGP message conversion, and high memory usage during message transfer.
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.Email for .NET 24.6 Release Notes.