Commit Graph

2 Commits

Author SHA1 Message Date
gabrieljablonski
326c9719d8 chore(imap-task): update backdate_conversations to set status as resolved 2026-03-12 09:51:13 -03:00
Gabriel Jablonski
9a157a260a
feat: add IMAP historical email import rake task (#234)
* 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>
2026-03-11 22:43:51 -03:00