-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
google takeout support #24
Comments
This would be a useful enhancement, possibly behind a CLI parameter flag. Unfortunately, I don't have much time to dedicate to this project at the moment. If you need it sooner and have time yourself, I'd be happy to give advice and review code. |
In order to avoid work overlap you should know that I am working on adding this feature in our branch: https://github.com/btactic/imap-upload/tree/google_takeout . The current implemented functionality saves the emails in the first (or last) label/folder. Not in everyone of them as you might want to. Note: I ported and adapted functionality from https://github.com/ldidry/gmail-mbox-to-imap which was based on an older version of imap-upload. |
Fantastic! Feel free to raise a draft PR here. I'd love to see what you're doing. |
* Categories labels are ignored. * Special IMAP_ folders are ignored. * Extra: Escape surrogate characters from messages. * Use Imap UTF-7 encoding for saving Imap folders. Defaults: * Open label is ignored * Unseen label is ignored * Inbox label is ignored if email is in other labels. * Sent label is ignored if email is in other labels. * Messages not having an 'Unseen' label have their flag set to: 'Seen'. * Folders from 'Important' label are not imported to 'Important' folder. Instead their flag is set to: 'Flagged'. * Messages are uploaded to every one of their label equivalent folders except for former rules. * Basic multi language support Closes rgladwell#24
* Categories labels are ignored. * Special IMAP_ folders are ignored. * Extra: Escape surrogate characters from messages. * Use Imap UTF-7 encoding for saving Imap folders. Defaults: * Open label is ignored * Unseen label is ignored * Inbox label is ignored if email is in other labels. * Sent label is ignored if email is in other labels. * Messages not having an 'Unseen' label have their flag set to: 'Seen'. * Folders from 'Important' label are not imported to 'Important' folder. Instead their flag is set to: 'Flagged'. * Messages are uploaded to every one of their label equivalent folders except for former rules. * Multi language support * Use 'box' folder as the base folder when uploading emails. Closes rgladwell#24
* Categories labels are ignored. * Special IMAP_ folders are ignored. * Extra: Escape surrogate characters from messages. * Use Imap UTF-7 encoding for saving Imap folders. Defaults: * Open label is ignored * Unseen label is ignored * Inbox label is ignored if email is in other labels. * Sent label is ignored if email is in other labels. * Messages not having an 'Unseen' label have their flag set to: 'Seen'. * Folders from 'Important' label are not imported to 'Important' folder. Instead their flag is set to: 'Flagged'. * Messages are uploaded to every one of their label equivalent folders except for former rules. * Multi language support * Use 'box' folder as the base folder when uploading emails. Closes rgladwell#24 Please note that this new feature adds a new requirement: imapclient python module.
My last pull request brings Google Takeout functionaly: #35 . Thank you. |
Thanks for fixing this. Merged! |
Thanks for your merge.
It actually doesn't deal with several folders but with one of them which can have parents in it.
What I mean is that even if my code is functional it can be improved a lot by python experts. |
I want to use this script to import
mbox
file created via Google Takeout service. They export all mail as a single mbox file. However, each message has an additional header specifying to what folder the message belongs to. E.g:It would be great if this script can handle these.
The text was updated successfully, but these errors were encountered: