Message-ID aware dedupe
JustForwarding records the Message-ID of every message it copies. Later polls skip any message with a recorded Message-ID, so the same email is not copied twice.
This keeps copying safe when a job restarts after you pay in the catch-up window, or when a pass is interrupted after a message was written.
Folders
The check applies across every included folder: Inbox, Sent, and custom folders. A Message-ID that appears in two folders counts as one message. A message that is also in Gmail All Mail is not copied a second time.
Limitations
- Missing Message-ID: Some broken clients omit the header. These messages may be copied again on later polls. This affects only those messages.
- Rewritten Message-ID: Some hosts rewrite the Message-ID on append, which causes visible duplicates. Check the Message-ID header on the destination to confirm.
Why not IMAP UIDs
IMAP UIDs can reset when a host rebuilds a folder. JustForwarding uses Message-ID as the durable identity instead.