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.6k stars 205 forks source link

trying to restore gets ERROR: 400: Expected a single 'From' header. Skipping message restore #383

Closed cericoda closed 2 years ago

cericoda commented 2 years ago

Full steps to reproduce the issue:

  1. mac mbox folder
  2. emails in the folder have attached emails in .eml format
  3. run gym --action restore-mbox to restore those emails to a google workspace account.

Expected outcome (what are you trying to do?): Trying to restore some old emails from an imap account in Apple mail .mbox to a google workspace account. I am expecting all those emails to be uploaded including their attachments.

Actual outcome (what errors or bad behavior do you see instead?): for any emails which have an attached .eml file, I am getting the following: ERROR: 400: Expected a single 'From' header. Skipping message restore

Is it possible that this is a bug where the attachment is incorrectly being scanned as being part of the email, and the headers being picked up as such?

cericoda commented 2 years ago

Edit: Ah- it looks like I haven't exported the mbox file from mac mail, but used the raw files. I need to export to mbx first. Will reopen with a better report/repro steps.