Stay organized with collectionsSave and categorize content based on your preferences.
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 usesMessages.importendpoint.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-24 UTC."],[],[],null,["# Samples\n\nMail Importer for Gmail\n-----------------------\n\nMail Importer for Gmail is an open source project from Google that uploads the\ncontents of a Thunderbird mail archive to Gmail, doing its best to preserve the\nread state, flagged state, and folders of the messages. It is written in Java\nand uses\n[Messages.import](/workspace/gmail/api/reference/rest/v1/users.messages/import)\nendpoint.\n\nClone the [GitHub repository](https://github.com/google/mail-importer) to get\nthe full source code, or browse the [Gmail-related\ncode](https://github.com/google/mail-importer/tree/master/src/main/java/to/lean/tools/gmail/importer/gmail)."]]