google / import-mailbox-to-gmail

Import .mbox files into Google Workspace

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Imports Duplicate Messages

GrumpyMailImporter opened this issue · comments

It seems like this tool imports duplicate messages? If a message already exists in the account and in the mbox file, the message is imported anyways. Does it do any checks on the destination account when importing?

The tool itself doesn't check for duplicates, but Gmail does. If you import the same message twice, Gmail would ignore the second one (just merge the labels from the two, if needed).

If you're seeing the same message twice after importing, verify that it doesn't appear twice in the source .mbox files. If you verified it, see if the message is missing a Message-ID header - that could cause Gmail to not be able to de-duplicate messages.

I hope this will help resolve the grumpiness! :)

Thanks for the info. So if a message already exists in the account and is also included in the mbox file, would Gmail delete the duplicate message after it is imported from the mbox file?

It doesn't really delete it - it simply doesn't import it. The source mbox file is not changed either, of course.