## Mail importer for Gmail

Mail Importer for Gmail is an open-source project from Google
that uploads the contents of a Thunderbird mail archive to
Gmail, doing its best to preserve the read state, flagged state,
and folders of the messages. It is written in Java and uses the
[`users.messages.import`](https://developers.google.com/workspace/gmail/api/reference/rest/v1/users.messages/import)
method.

Clone the [GitHub repository](https://github.com/google/mail-importer) to get
the full source code, or browse the
[Gmail-related code](https://github.com/google/mail-importer/tree/master/src/main/java/to/lean/tools/gmail/importer/gmail).