Get rid of the mail item queue system. Go back to 6 months initial sync strategy.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user