feat(application): extend DTOs with POP3/OAuth2 fields and add IMAP append flags to SendingEmailEvent
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user