I made an assumption in the example in previous email below reading the GYB output that messages 168915, 170491, 171091, 171886 failed when in fact this is not the case. I assumed the ERROR messages corresponded to the message number above the error. It ended up that the missing messages were "around" those numbers. What I did was open the <new email address>-restored.sqlite database which contains a single table with a list of message numbers that were successfully restored. Any missing numbers in the sequence are emails that failed restoration.
The fastest way for me to compile a list of missing message numbers was a bash one-liner to make a file with numbers 1 - 173213 on each line. I then exported the sqlite table to another file and diff'd them - the resulting output from diff was only the missing emails numbers.
sqlite> SELECT message_filename FROM messages WHERE message_num in (77280, 113401, 113710, 114164, 115363, 115680, 118514, 121333, 121541, 121544, 121573, 122009, 122014, 126845, 126865, 128791, 132413, 136047, 141613, 141619, 141622, 147235, 149622, 149839, 149906, 151122, 151235, 151532, 151540, 152408, 152526, 155093, 155606, 158202, 160652, 161169, 164212, 164213, 165214, 167949, 168107, 168906, 170482, 171087, 171890);
this gave me a list of file locations so I could open the emails up that failed to restore in notepad and see if any of them were worth preserving. Almost all were emails with MSI attachments over 10 years ago - seems google doesn't like MSI attachments currently. A few were emails with multiple "From:" lines in the headers, and I was able to verify this by opening the emails once I found the correct failed message numbers.
One final thing I'd like to note.. One restore failed because of "WARNING! file GYB-GMail-Backup-<old email>\2008\7\30\11b75e581f29eb2b.eml does not exist for message 136047 this message will be skipped." - it turns out Windows quarantined this file after it was backed up because it had a virus in it!
After examining each ERROR and WARNING instance of the GYB output when restoring my email, each of these email restores failed for a good reason.
Thanks for writing this tool! I am confident now my emails are all migrated (as best as possible) from my old school account to my new personal account.
David
On Wednesday, May 10, 2023 at 8:20:14 AM UTC-4 David Carlin wrote: