feat(application): add EmailSyncResult DTO, Folder/AccountId to ReceivedEmailDto, rename CreateRangeAsync in IRepository, update IImapEmailService signature, add AutoMapper profiles for ReceivedEmail and EmailAttachment

This commit is contained in:
2026-08-13 16:48:22 +02:00
parent c9b7d99ecc
commit 6abe0e18f6
5 changed files with 43 additions and 14 deletions

View File

@@ -14,6 +14,15 @@ public sealed record ReceivedEmailDto
public long Uid { get; set; }
#endif
/// <summary>
/// ID of the email account this message belongs to.
/// </summary>
#if NET
public int AccountId { get; init; }
#else
public int AccountId { get; set; }
#endif
/// <summary>
/// Sender address (From header).
/// </summary>
@@ -94,4 +103,10 @@ public sealed record ReceivedEmailDto
#else
public bool IsSeen { get; set; }
#endif
#if NET
public required string Folder { get; init; }
#else
public string Folder { get; set; } = null!;
#endif
}