Restore IMAP-based email from Time Machine
I am trying to assist my mother, who deleted all her email messages somehow from her Gmail account, which she accesses using the Apple Mail app using IMAP. She has a backup of her entire system, which I believe includes the messages downloaded via IMAP.
So far, while working in OFFLINE mode to avoid impacting Google's servers, I have tried accessing the Mail folder inside her Library folder within the Time Machine backup from a month before the emails were deleted. I copied that folder to a new user account and launching Mail app. The messages and folders did not show up. I also tried using the Import function to import from the .mbox files, which showed a progress bar and the app declared success, but no folders nor any individual messages showed up.
My next idea is to use my mother's computer ONLINE and copy all the folders from Gmail to On My Mac, thus making them local only. I would then restore from Time Machine backup onto another system and allow Gmail to synchronize with the computer, hoping the email server will copy all the email messages back into their folders.
Any other advice/recommendations?