refactor(imap): remove connection pool, revert to per-call Imap, add batch flags fetch
- ImapConnectionPool removed (over-engineered; IMAP server allows multiple concurrent connections) - LimilabsImapEmailService reverted to stateless per-call new Imap() pattern (same as original) - GetFlagsByUIDAsync(List<long>) replaces per-message GetFlagsByUID — one round-trip for all flags - markAsSeen wired through: GetMessageByUIDAsync (true) vs PeekMessageByUIDAsync (false) - DependencyInjection: pool registration removed, service registered directly as before
This commit is contained in:
@@ -27,6 +27,7 @@ public static class DependencyInjection
|
||||
services.AddSingleton<IEmailService, LimilabsEmailService>();
|
||||
|
||||
// Email Service - IMAP inbound (Limilabs Mail.dll)
|
||||
// Fresh connection per call — stateless and thread-safe.
|
||||
services.AddSingleton<IImapEmailService, LimilabsImapEmailService>();
|
||||
|
||||
// PDF Processing Service (using DevExpress.Pdf)
|
||||
|
||||
Reference in New Issue
Block a user