GAM-team / got-your-back

Got Your Back (GYB) is a command line tool for backing up your Gmail messages to your computer using Gmail's API over HTTPS.
https://github.com/GAM-team/got-your-back/wiki
Apache License 2.0
2.64k stars 211 forks source link

Invalid label name #264

Closed JimmyWorks closed 4 years ago

JimmyWorks commented 4 years ago

The issue tracker is for reporting product deficiencies. How do I questions should be posted to the discussion forum at https://groups.google.com/group/got-your-back. When in doubt, start at the discussion forum and return here only when instructed to do so.

Please confirm the following:

Full steps to reproduce the issue:

  1. Export G Suite email to .mbox file
  2. Use the following command to import to new email: ''gyb --email newemail@gmail.com --action restore-mbox --local-folder "C:\Users\my-path-to-mbox"
  3. Get error Creating label Muted 400: Invalid label name - invalidArgument

Expected outcome (what are you trying to do?): Upload all of my mbox messages to personal email.

Actual outcome (what errors or bad behavior do you see instead?): Looks like it stops part-way because of this error.

JimmyWorks commented 4 years ago

Seems like --strip-labels was a good work-around.