Reworked IMAP folder synchronization logic. Gained 4x and fixed bunch of bugs around it.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Wino.Core.Domain.Entities;
|
||||
using Wino.Core.Domain.Interfaces;
|
||||
using Wino.Core.Services;
|
||||
|
||||
@@ -18,5 +19,11 @@ namespace Wino.Core.Integration.Processors
|
||||
|
||||
public Task<IList<uint>> GetKnownUidsForFolderAsync(Guid folderId)
|
||||
=> FolderService.GetKnownUidsForFolderAsync(folderId);
|
||||
|
||||
public Task<List<MailItemFolder>> GetLocalIMAPFoldersAsync(Guid accountId)
|
||||
=> FolderService.GetFoldersAsync(accountId);
|
||||
|
||||
public Task UpdateFolderAsync(MailItemFolder folder)
|
||||
=> FolderService.UpdateFolderAsync(folder);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user