Initial commit.

This commit is contained in:
Burak Kaan Köse
2024-04-18 01:44:37 +02:00
parent 524ea4c0e1
commit 12d3814626
671 changed files with 77295 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
using System;
using MailKit;
using Wino.Core.Domain.Entities;
namespace Wino.Core.Extensions
{
public static class MailkitExtensions
{
public static MailItemFolder GetLocalFolder(this IMailFolder mailkitMailFolder)
{
return new MailItemFolder()
{
Id = Guid.NewGuid(),
FolderName = mailkitMailFolder.Name,
RemoteFolderId = mailkitMailFolder.FullName,
ParentRemoteFolderId = mailkitMailFolder.ParentFolder?.FullName,
SpecialFolderType = Domain.Enums.SpecialFolderType.Other,
IsSynchronizationEnabled = true
};
}
}
}