-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Add configurable retry logic for handling transient network failures and server busy responses.
Motivation
Network connections can experience temporary failures. Currently, applications must implement their own retry logic. Built-in retry support would improve reliability.
Proposed Configuration
\\ ypescript
const client = await ImapClient.connect({
imap: {
host: 'imap.gmail.com',
// ... other options
},
retry: {
maxAttempts: 3,
initialDelay: 1000,
maxDelay: 30000,
backoffMultiplier: 2,
retryableErrors: ['ETIMEDOUT', 'ECONNRESET', 'SERVER_BUSY']
}
});
\\
Scenarios to Handle
- Network timeouts (ETIMEDOUT)
- Connection resets (ECONNRESET)
- Server busy responses
- Temporary authentication failures
Benefits
- Improved reliability without custom code
- Configurable retry behavior
- Exponential backoff to avoid overwhelming servers
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request