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.56k stars 203 forks source link

Allow label-prefix flag to work for mbox restores #457

Open phistrom opened 3 months ago

phistrom commented 3 months ago

Addresses issue #216 which, although closed, is still not working.

Line 1641 normalizes the path so that reserved labels are capitalized. For instance, Prefix/Inbox/Favorites would become Prefix/INBOX/Favorites. This prevented the WARNING: failed to create (existing?) label messages I got when importing my mbox file from Google Takeout with a prefix.