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.63k stars 209 forks source link

Fails to restore from mbox #191

Closed ilium007 closed 4 years ago

ilium007 commented 5 years ago

Attempted to restore an mbox that was exported from Apple mail on OSX 10.14.1.

$ ./gyb --email trevorxxxxx@gmail.com --action restore-mbox --local-folder /Users/xxxxxxx/Downloads/xxxxxx\ Archive/ --label-restored temp

It immediately returns:

Using backup folder /Users/xxxxx/Downloads/xxxx Archive/

done!

Nothing is restored to GMail

headlands commented 5 years ago

I'm having the same issue. In my case, I thought it was due to having copied .mbox folder from under ~/Library/Mail/ rather than using the Export function. OS X treats the mbox package as a folder rather than a file, and I was assuming GYB ignored it for that reason?

chrisndeca commented 5 years ago

Having this same issue. Nothing is being transfered. Any help or suggestions would be appreciated!

krauth commented 5 years ago

Oohh... I was hoping it was my fault, still possible if we both do the same stupid thing... :-)

Maybe you can try the following as well - to confirm my findings:

I did a restore of the exact same backup and with the same command (I used previously) but this time to my own account, data got pushed there, but not only >20M and doing multiple of those in parallel, with different labels, gets the labels multi assigned...

So, when restoring to my own account, with own credentials (which actually are super admin credentials - don't know, this might be important...) and multiple restores at the same time with different labels the outcome is:

labels do get created restore works (didn't check if it is complete though) but doesn't adhere to the >20M search get restored with all labels attached to all restored emails

GYB is a great tool, full support from me. Let me know if I can help more with testing etc!

cu Franz

On Sun, 2 Jun 2019 at 10:59, Chris Norman notifications@github.com wrote:

Having this same issue. Nothing is being transfered. Any help or suggestions would be appreciated!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jay0lee/got-your-back/issues/191?email_source=notifications&email_token=AALRYPIONDO7NHKRZIKDC4LPYMLPJA5CNFSM4GTYKI7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWXLNRI#issuecomment-497989317, or mute the thread https://github.com/notifications/unsubscribe-auth/AALRYPI7MEMIXKQP2R7SK7DPYMLPJANCNFSM4GTYKI7A .

Adam0111 commented 5 years ago

Hey, It would be very helpful to make a youtube video on how to restore a .mbox file (GoogleTakeOut file).