got-your-back icon indicating copy to clipboard operation
got-your-back copied to clipboard

Feature Request – Header Cleanup

Open ArcoForzato opened this issue 3 years ago • 4 comments

I confirm I have upgraded to the latest GYB release from https://github.com/jay0lee/got-your-back/releases and I still have this issue. I confirm I am typing the command as described in the GAM Wiki at https://github.com/jay0lee/got-your-back/wiki

Full steps to reproduce the issue:

  1. Export Inbox: gyb --email [email protected] --service-account --action backup
  2. Restore Inbox to another account: gyb --email [email protected] --action restore --local-folder "C:\GAMADV-XTD3\[email protected]" --service-account --label-prefix "ABC's Emails"

Expected outcome (what are you trying to do?): Restore ABC's emails to [email protected]

Actual outcome (what errors or bad behavior do you see instead?):

restoring 15 messages (74/28498) ERROR: 400: Expected a single 'From' header. Skipping message restore. ERROR: 400: Expected a single 'From' header. Skipping message restore. restoring 17.1mb message (75/28498)

A Header Cleanup feature would be greatly appreciated!

ArcoForzato avatar Feb 24 '22 18:02 ArcoForzato

Also encountering this error restoring while restoring email backed up from a Workplace domain to a gmail.com address.

Shaav avatar Sep 30 '22 16:09 Shaav

I am having the same issue File are from a V10- Folder on an Apple computer All files were converted from Apple Mbox files to .eml file with partial-emlx-converter Then I run this command \Volumes/ServerData/gyb/companyname/gyb --action restore-mbox --label-restored "UserName-Email-Date" --local-folder /Volumes/ServerData/GMail-Backup-UsersName --email [email protected] --service-account --batch-size 4 I have thousands of .eml files giving the following message: ERROR: 400: Expected a single 'From' header. Skipping message restore If you can add a Header Clean up feature that would be appreciated Thank you for your time and amazing work on GYB

tiggertazz avatar Jul 03 '23 18:07 tiggertazz

This feature has existed for a while now. See:

https://github.com/GAM-team/got-your-back/releases/tag/v1.55

When --cleanup is specified GYB should detect duplicate headers. I haven't tested but you may need --cleanup-from also.

Jay

jay0lee avatar Jul 03 '23 18:07 jay0lee

Thank you for the info.

tiggertazz avatar Jul 03 '23 18:07 tiggertazz