Refactor email services and update password handling

Updated `EmailAccountDto` to use `required` properties for .NET 7+ compatibility, removing the `PasswordEncrypted` property and simplifying password handling.

Removed `IEncryptionService` dependency from `LimilabsEmailService` and `LimilabsImapEmailService`. Updated `ConnectAndAuthenticateSmtpAsync` and `OpenAsync` methods to remove password decryption logic.

Introduced `CancellationToken` support in `LimilabsImapEmailService` methods to improve cancellation handling for IMAP operations.

Added `Entities\` folder reference in `DigitalData.MessagingService.Domain.csproj`.
This commit is contained in:
2026-08-12 14:24:17 +02:00
parent 176e6dd6c5
commit 5e0de6d52a
4 changed files with 24 additions and 29 deletions

View File

@@ -22,8 +22,6 @@ public class EmailAccountDto
public string Password { get; set; } = null!;
#endif
public bool PasswordEncrypted { get; set; } = false;
#if NET
public required string SmtpServer { get; set; }
#else