feat(application): extend DTOs with POP3/OAuth2 fields and add IMAP append flags to SendingEmailEvent

This commit is contained in:
2026-08-17 10:14:44 +02:00
parent ef8df96e65
commit a57429718d
3 changed files with 41 additions and 1 deletions

View File

@@ -43,4 +43,14 @@ public record EmailAccountDto
/// Use SSL/TLS when connecting to the IMAP server.
/// </summary>
public bool ImapUseSsl { get; set; } = true;
public string? Pop3Server { get; set; }
public int Pop3Port { get; set; } = 995;
public bool Pop3UseSsl { get; set; } = true;
public string? OAuth2ClientId { get; set; }
public string? OAuth2TenantId { get; set; }
}

View File

@@ -44,4 +44,16 @@ public record EmailAccountModificationDto
/// Use SSL/TLS when connecting to the IMAP server.
/// </summary>
public bool ImapUseSsl { get; set; } = true;
public string? Pop3Server { get; set; }
public int Pop3Port { get; set; } = 995;
public bool Pop3UseSsl { get; set; } = true;
public string? OAuth2ClientId { get; set; }
public string? OAuth2ClientSecret { get; set; }
public string? OAuth2TenantId { get; set; }
}

View File

@@ -19,4 +19,22 @@ public record SendingEmailEvent
#else
public required DateTime QueuedAt { get; init; }
#endif
}
/// <summary>
/// When true, the sent message will be appended to the IMAP Sent folder after sending.
/// </summary>
#if NETFRAMEWORK
public bool UseImapAppend { get; set; } = false;
#else
public bool UseImapAppend { get; init; } = false;
#endif
/// <summary>
/// IMAP folder to append the sent message to (used when <see cref="UseImapAppend"/> is true).
/// </summary>
#if NETFRAMEWORK
public string SentFolder { get; set; } = "Sent";
#else
public string SentFolder { get; init; } = "Sent";
#endif
}