You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Persist RFC822 Message-ID for cross-sync IMAP dedup; harden EML export
IMAP composite IDs (mailbox|uid) change when messages move between
mailboxes across syncs. Without persistent dedup, a message moved
from All Mail to Trash would be re-imported as a duplicate.
Add rfc822_message_id column to messages table, populated from the
parsed MIME Message-ID header during ingest. For IMAP sources,
check this column before persisting to skip messages already
imported under a different composite ID. Dedup skips are counted
as skipped (not errors) via errDuplicateRFC822 sentinel.
Harden sanitizeEMLFilename with filepath.Base to ensure the output
is a plain filename with no directory components, guarding against
IMAP mailbox names containing path separators.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments