{"id":15659797,"url":"https://github.com/danburzo/gmail-mbox2maildir","last_synced_at":"2025-05-05T19:52:53.095Z","repository":{"id":32107802,"uuid":"90272077","full_name":"danburzo/gmail-mbox2maildir","owner":"danburzo","description":"Migrate a Gmail inbox to maildir-powered mail server","archived":false,"fork":false,"pushed_at":"2022-09-08T10:56:54.000Z","size":21,"stargazers_count":28,"open_issues_count":2,"forks_count":16,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-30T23:11:47.309Z","etag":null,"topics":["gmail","maildir","mbox"],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danburzo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-04T14:20:21.000Z","updated_at":"2025-01-31T01:06:58.000Z","dependencies_parsed_at":"2022-07-25T08:47:04.123Z","dependency_job_id":null,"html_url":"https://github.com/danburzo/gmail-mbox2maildir","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danburzo%2Fgmail-mbox2maildir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danburzo%2Fgmail-mbox2maildir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danburzo%2Fgmail-mbox2maildir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danburzo%2Fgmail-mbox2maildir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danburzo","download_url":"https://codeload.github.com/danburzo/gmail-mbox2maildir/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252566659,"owners_count":21769083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gmail","maildir","mbox"],"created_at":"2024-10-03T13:19:10.449Z","updated_at":"2025-05-05T19:52:53.074Z","avatar_url":"https://github.com/danburzo.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GMail MBOX to Maildir\n\nHow to use these two Python/Perl scripts to migrate a GMail inbox to a cpanel / dovecot / maildir inbox — when you have a lot of emails and other, simpler, imports fail.\n\nYou'll need FTP and SSH access to the server; or, if you can't connect over SSH, make sure there's a file manager that permits unzipping in your host's admin interface.\n\n### 1. Download MBOX from Google Takeout\n\n### 2. Split MBOX by labels\n\n```shell\n./mbox_split.py --infile google_mbox.mbox --prefix split_\n```\n\nYou may need to `chmod 755 mbox_split.py` to be able to run.\n\nAlternatively, you can just export by label from Google Takeout directly.\n\n### 3. MBOX to Maildir\n\n```shell\n./mb2md.pl -s ~/path/to/split_Inbox.mbox -d ~/path/to/output/Inbox\n```\n\n__Notes:__\n\n1. may need `chmod 755 mbox_split.py` to be able to run\n2. source and destination need absolute paths\n\n### 4. Zip the `new/` folder for each output mailbox\n\n### 5. Upload Zip to server in appropriate maildir mailbox folder, and expand via SSH:\n\n```shell\nunzip -j Inbox.zip\nrm Inbox.zip\n```\n\n(The `-j` flag will make sure the zipped `new` folder will extract in-place, with no additional folder structure)\n\n### 6. (Optional) Access inbox via webmail and mark everything as read\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanburzo%2Fgmail-mbox2maildir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanburzo%2Fgmail-mbox2maildir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanburzo%2Fgmail-mbox2maildir/lists"}