Build feature-rich email processing applications in .NET with Aspose.Email for .NET 24.6 (DLLs-only package) on a platform of your choice.
Microsoft Graph Tasks Management
Interact with tasks and task lists using the new APIs introduced in this C# emailing API release 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*
Refined MBOX Splitting
The latest .NET emailing API release allows canceling 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 version resolves various 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.