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 209 forks source link

Allow importing external EML files without renaming them to MBOX #313

Closed lwcorp closed 3 years ago

lwcorp commented 3 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. Put EML files in your folder
  2. Run gyb --email [address] --action restore --local-folder [folder]

Expected outcome (what are you trying to do?): It should be imported.

Actual outcome (what errors or bad behavior do you see instead?): Nothing gets imported, it just types "Using backup folder [folder]".

As an interim solution, I've updated the documentation that you can:

  1. Rename each of my EML files to MBOX
  2. Run gyb --email [address] --action restore-mbox --local-folder [folder]

And it works!

So all I ask let's spare the need to rename EML to MBOX. You can do so automatically or add a new command like --action restore-eml.