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.61k stars 206 forks source link

Label causing import error #316

Closed eakkas closed 3 years ago

eakkas commented 3 years ago

I am importing a large (500K+ messages) mbox to Gmail. The process started fine, imported a few thousand messages and got interrupted with the following message:

Creating label Muted
400: Invalid label name - invalidArgument

When I re-run the command, it exits with the same message. I guess "Muted" causes a conflict. I'd be okay skipping importing the messages with the label "Muted" but I don't think that's an option. I would appreciate the groups input on how I can resolve this issue.

jay0lee commented 3 years ago

Can you try running the restore with the additional argument of:

--extra-reserved-labels muted

this tells GYB to treat Muted as a reserved label it should not try to create. Instead it will be created as _Muted.

eakkas commented 3 years ago

Thanks. I ended up doing --strip-labels. I may redo the whole thing and try your suggestion.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.