mail2gg
Email to Google Group migration tool
It provides simple cli tools devised to support migrations or email imports to a Google Group:
It uses the Groups Migration API, a Google Developers Console project with the Google Groups service enabled will be needed. For more information review the prerequisites.
The first execution will start an OAuth2 Google Authentication Flow to initialize and store your grants.
Highly inspired by https://gist.github.com/pecigonzalo/c147e3f174fca90bec66efbd9eb24ad3.
Install
Just use pip to install it!
pip install mail2gg
imap2gg
__ ______
|__|.--------.---.-.-----.|__ |.-----.-----.
| || | _ | _ || __|| _ | _ |
|__||__|__|__|___._| __||______||___ |___ |
|__| |_____|_____|
Import an IMAP mailbox to a Google Group
If password is not provided will prompt for it
client_id and client_secret are just needed the first time. The authorization file .credentials will be created and reused
Default query is 'ALL'. Examples: 'SEEN', 'UNSEEN'. See https://github.com/ikvk/imap_tools/blob/master/README.rst#search-criteria for more filters
Errors are logged to stdout and embeded into error.mbox file.
For more info run $ imap2gg --help
Examples
- Import everything from my IMAP server
$ imap2gg example@googlegroups.com myimapserver.com example@myimapserver.com aPassword --client_id=11111111-asjdhasjdkhasdjkhasjkh12.apps.googleusercontent.com --client_secret=4JHsadhj23jhasdj
- Import everything from a gmail account
$ imap2gg another@googlegroups.com imap.gmail.com example@gmail.com aPassword --client_id=11111111-asjdhasjdkhasdjkhasjkh12.apps.googleusercontent.com --client_secret=4JHsadhj23jhasdj
- Import just unseen emails:
$ imap2gg another@googlegroups.com imap.gmail.com example@gmail.com aPassword --query='UNSEEN'
mbox2gg
__ ______
.--------.| |--.-----.--.--.|__ |.-----.-----.
| || _ | _ |_ _|| __|| _ | _ |
|__|__|__||_____|_____|__.__||______||___ |___ |
|_____|_____|
Import an mbox file to a Google Group
client_id and client_secret are just needed the first time. The authorization file .credentials will be created and reused
Errors are logged to stdout and embeded into error.mbox file.
For more info run $ mbox2gg --help
Examples
- Import everything from mailbox.mbox to example@googlegroups.com
$ mbox2gg example@googlegroups.com mailbox.mbox --client_id=11111111-asjdhasjdkhasdjkhasjkh12.apps.googleusercontent.com --client_secret=4JHsadhj23jhasdj
Metadata
Release files for mail2gg 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mail2gg-0.1.5.tar.gz | 17.4 kB | Without provenance | Details for mail2gg-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mail2gg-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for mail2gg-0.1.5-py3-none-any.whl |
Total release size: 35.3 kB
Release files / mail2gg-0.1.5.tar.gz
| Download URL | mail2gg-0.1.5.tar.gz |
|---|---|
| Size | 17.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a7ed6a189cecb06e21531ff85ba33e619b6ae88328ef368e8eaf55f9d75a940
|
|
BLAKE2b-256 checksum How to use checksums |
78024478e6e67ad19cb11a5590909dbf70ffbf890bfec0545a8dddf779ec1b5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Release files / mail2gg-0.1.5-py3-none-any.whl
| Download URL | mail2gg-0.1.5-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82417c4587738ed1f7f0edf2a369d1f4fdb1247b74b75c8da518c85e859a8b8f
|
|
BLAKE2b-256 checksum How to use checksums |
6b9cfc984545e95e51a0a1df9168e98e489b2f3af7443a7f333ae63930e8544c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Security for mail2gg 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.