* feat: add IMAP historical email import rake task
Adds `imap:import` rake task to bulk-import emails from IMAP into a
Chatwoot inbox with parallel workers, progress tracking, and proper
backdating of message/conversation timestamps.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: address PR review feedback for IMAP import task
- Use IMAP UIDs instead of sequence numbers for stable cross-session refs
- Respect channel.imap_enable_ssl instead of hardcoding ssl: true
- Add ensure block to guarantee IMAP logout on worker errors
- Add open_timeout to prevent hanging connections
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>