Get rid of the mail item queue system. Go back to 6 months initial sync strategy.

This commit is contained in:
Burak Kaan Köse
2025-11-01 12:11:05 +01:00
parent 5186b14905
commit b60832a270
18 changed files with 356 additions and 763 deletions
@@ -36,12 +36,6 @@ public class MailItemFolder : IMailItemFolder
/// </summary>
public string DeltaToken { get; set; }
/// <summary>
/// Whether initial synchronization of mail ids is completed for this folder.
/// Used to determine if we should queue all mail ids first or start downloading from queue.
/// </summary>
public InitialSynchronizationStatus FolderStatus { get; set; }
// For GMail Labels
public string TextColorHex { get; set; }
public string BackgroundColorHex { get; set; }
@@ -1,20 +0,0 @@
using System;
using SQLite;
namespace Wino.Core.Domain.Entities.Mail;
public class MailItemQueue
{
[PrimaryKey]
public Guid Id { get; set; }
public Guid AccountId { get; set; }
public string RemoteServerId { get; set; }
public string RemoteFolderId { get; set; } // For Outlook per-folder sync
public bool IsProcessed { get; set; }
public int FailedCount { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime? ProcessedAt { get; set; }
public bool IsRecent() => (DateTime.UtcNow - CreatedAt).TotalDays <= 7;
public bool ShouldDelete() => IsProcessed || FailedCount >= 30;
}
@@ -33,11 +33,6 @@ public class MailAccount
/// </summary>
public MailProviderType ProviderType { get; set; }
/// <summary>
/// Gets or sets the initial mail sync status for the account.
/// </summary>
public InitialSynchronizationStatus SynchronizationStatus { get; set; }
/// <summary>
/// For tracking mail change delta.
/// Gmail : historyId