Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request – Header Cleanup #358

Open
ArcoForzato opened this issue Feb 24, 2022 · 4 comments
Open

Feature Request – Header Cleanup #358

ArcoForzato opened this issue Feb 24, 2022 · 4 comments

Comments

@ArcoForzato
Copy link

ArcoForzato commented Feb 24, 2022

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 abc@xyz.com --service-account --action backup
  2. Restore Inbox to another account:
    gyb --email archive@xyz.com --action restore --local-folder "C:\GAMADV-XTD3\GYB-GMail-Backup-abc@xyz.com" --service-account --label-prefix "ABC's Emails"

Expected outcome (what are you trying to do?):
Restore ABC's emails to archive@xyz.com

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!

@Shaav
Copy link

Shaav commented Sep 30, 2022

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

@tiggertazz
Copy link

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@domain.com --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

@jay0lee
Copy link
Member

jay0lee commented Jul 3, 2023

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

@tiggertazz
Copy link

Thank you for the info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants