Skip to content
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

Import to Specific Label/Sub-Label #47

Open
seanpmgallagher opened this issue Apr 28, 2022 · 2 comments
Open

Import to Specific Label/Sub-Label #47

seanpmgallagher opened this issue Apr 28, 2022 · 2 comments

Comments

@seanpmgallagher
Copy link

There doesn't seem to be a way to import emails to google workspace to a specific sub-label. I've tried using the --box command which creates the label, but the emails end up in the main inbox/drafts/important/sent mail folders. Any way to avoid this and just upload all to a label and have it create the sub-labels under that based on structure? Example structure of Mac Mail mbox eport below:

Just list mail boxes!
"INBOX""
"[Gmail]"" #Noselect
+- "All Mail"" #All
+- "Drafts"" #Drafts
+- "Important"" #Important
+- "Sent Mail"" #Sent
+- "Spam"" #Junk
+- "Starred"" #Flagged
+- "Trash"" #Trash

@rgladwell
Copy link
Owner

Interesting. What arguments are you using for this import?

@adriangibanelbtactic
Copy link
Contributor

There doesn't seem to be a way to import emails to google workspace to a specific sub-label. I've tried using the --box command which creates the label, but the emails end up in the main inbox/drafts/important/sent mail folders. Any way to avoid this and just upload all to a label and have it create the sub-labels under that based on structure? Example structure of Mac Mail mbox eport below:

Just list mail boxes! "INBOX"" "[Gmail]"" #Noselect +- "All Mail"" #All +- "Drafts"" #Drafts +- "Important"" #Important +- "Sent Mail"" #Sent +- "Spam"" #Junk +- "Starred"" #Flagged +- "Trash"" #Trash

I think the option that you are looking for is --google-takeout-box-as-base-folder.
It is originally aimed at google takeout mbox files so it might not work 100%. Give it a go and give us feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants