{"id":21091337,"url":"https://github.com/andreasscherbaum/maildir2gmail","last_synced_at":"2025-05-16T13:31:47.470Z","repository":{"id":150267968,"uuid":"72984172","full_name":"andreasscherbaum/maildir2gmail","owner":"andreasscherbaum","description":"Maildir 2 Gmail","archived":false,"fork":false,"pushed_at":"2018-11-28T19:54:02.000Z","size":69,"stargazers_count":14,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T01:51:04.296Z","etag":null,"topics":["gmail","gmail-inbox","imap","mailbox","maildir","migration","migration-tool"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreasscherbaum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-06T10:43:07.000Z","updated_at":"2020-12-11T20:58:22.000Z","dependencies_parsed_at":"2023-04-12T20:30:59.998Z","dependency_job_id":null,"html_url":"https://github.com/andreasscherbaum/maildir2gmail","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/andreasscherbaum%2Fmaildir2gmail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasscherbaum%2Fmaildir2gmail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasscherbaum%2Fmaildir2gmail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasscherbaum%2Fmaildir2gmail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreasscherbaum","download_url":"https://codeload.github.com/andreasscherbaum/maildir2gmail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254538453,"owners_count":22087867,"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","gmail-inbox","imap","mailbox","maildir","migration","migration-tool"],"created_at":"2024-11-19T21:45:12.755Z","updated_at":"2025-05-16T13:31:47.461Z","avatar_url":"https://github.com/andreasscherbaum.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# maildir2gmail\n\nMaildir 2 Gmail\n\n## Overview and History\n\nThe _maildir2gmail.py_ script allows uploading a maildir directory into a Google Gmail account, using IMAP.\n\nScott Yang provides the original _maildir2gmail.py_ script on [his website](https://scott.yang.id.au/2009/01/migrate-emails-maildir-gmail.html). There is no license included, but according to a [Tweet](https://twitter.com/scottyang/status/794141870934720512) ([copy](./Twitter_2016-11-03.png)) the license is \"provided as is\" (public domain).\n\nThe script in this repository contains a few additional features which I found useful while migrating data, as well as additional documentation how to use it.\n\n## Usage\n\n```\n./maildir2gmail.py [-f] [-n] [--ignore-missing-date] [--max-size=MAX_SIZE] -u \u003cusername\u003e -p \u003capp-password\u003e \u003cmaildirs\u003e\n```\n\nBy default, all mails are uploaded to _All Mail_ in Gmail, following the Google concept of \"never delete mails, just archive everything\".\nA folder can be specified using the _-f_ option. Non-existent folders will be created automatically.\n\nMails can be marked as Unseen (new) using the _-n_ option.\n\nUse option _--ignore-missing-date_ to ignore all messages with missing date. In this case, messages are imported to gmail with the last modification time of the file.\n\nYou can set the maximum size for messages with the option _--max-size=MAX_SIZE_ (in bytes). Messages that are larger than the defined size are skipped. Default is 25 MB (Gmail limitation for IMAP).\n\nUsername and Password are required, IMAP for your mailbox must be turned on (do this in the Settings for your mailbox). In addition you have to create an [app password](https://support.google.com/accounts/answer/185833).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreasscherbaum%2Fmaildir2gmail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreasscherbaum%2Fmaildir2gmail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreasscherbaum%2Fmaildir2gmail/lists"}