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

restore-mbox doesn't seem to honor --label-prefix #216

Closed
cwalkatron opened this issue Aug 24, 2019 · 5 comments
Closed

restore-mbox doesn't seem to honor --label-prefix #216

cwalkatron opened this issue Aug 24, 2019 · 5 comments

Comments

@cwalkatron
Copy link

Full steps to reproduce the issue:

  1. Do an mbox export from Google Vault
  2. gyb --action restore-mbox --email [email protected] --label-prefix gybrestore
  3. login as me@mydomain in Gmail. All the mail is restores, but all the labels are at the top level.

Expected outcome (what are you trying to do?):
I am trying to do an mbox restore into an account, but would like all the messages to be under a label.

Actual outcome (what errors or bad behavior do you see instead?):
I see all the messages restore, but --label-prefix is not applied.

@erozcomar
Copy link

Hi. Same problem here.
I've tried version 1.30 and 1.31 with --label-restored but it didn't work for me.
Try with local account, and with --service-account without positive results.
All the mail is restores, but all the labels are at the top level.
Any debug to help?
Regards

@cwalkatron
Copy link
Author

Unfortunately, I can't contribute to open source projects without jumping through some company hoops, but I will tell you that it's a 2-line change to gyb.py to make this work. Sorry that is a really unhelpful comment.

@aalkz
Copy link

aalkz commented Dec 4, 2019

I had this problem as well, everything restored perfectly, but I could never manage to get the --label-restored argument to work.

@jay0lee
Copy link
Member

jay0lee commented Mar 5, 2020

this should be fixed in latest GYB versions, if not please re-open.

@jay0lee jay0lee closed this as completed Mar 5, 2020
@reflecx
Copy link

reflecx commented Apr 20, 2022

label-prefix for mbox restore doesn't work. I looked through the source code, the label-prefix code is only in the restore action, it's not executed within the restore-mbox action

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

5 participants