
neo773andGitHub
8d001eb33f
fix: don't mark IMAP channel as failed on transient server errors (#20273)
Map RFC 5530 codes to `TEMPORARY_ERROR` so sync retries instead of
terminally flagging `FAILED_INSUFFICIENT_PERMISSIONS` when the server is
briefly unavailable.
prod Logs
```
2026-05-05 03:53:42.129
authenticationFailed: true
2026-05-05 03:53:42.129
serverResponseCode: 'UNAVAILABLE',
2026-05-05 03:53:42.129
responseText: 'Account is temporarily unavailable.',
2026-05-05 03:53:42.129
2026-05-05 03:53:42.129
response: '2 NO [UNAVAILABLE] Account is temporarily unavailable.',
2026-05-05 03:53:42.129
cause: Error: Command failed
2026-05-05 03:53:42.129
code: 'INSUFFICIENT_PERMISSIONS',
Caused by: Error: Command failed
[Nest] 35 - 05/04/2026, 10:23:42 PM ERROR [ImapGetAllFoldersService] MessageImportDriverException: IMAP authentication error: Command failed
```
2026-05-05 14:30:57 +02:00
..
2026-05-05 12:45:02 +02:00
2026-05-04 16:06:50 +00:00
2026-05-05 14:04:15 +02:00
2026-03-25 10:45:43 +01:00
2026-05-05 12:45:02 +02:00
2026-05-05 12:45:02 +02:00
2026-04-17 11:32:10 +00:00
2026-05-04 11:09:34 +02:00
2026-05-05 14:25:29 +02:00
2026-04-30 16:50:22 +00:00
2026-05-05 12:45:02 +02:00
2026-05-05 12:45:02 +02:00
2026-05-05 14:30:57 +02:00
2026-05-05 14:04:15 +02:00
2026-04-30 16:50:22 +00:00
2026-04-30 16:50:22 +00:00
2026-05-05 12:45:02 +02:00
2026-04-30 16:50:22 +00:00