How to restore just an IMAP email account's Inbox folder in TimeMachine
MacOS 12.7.1; Mail 16.0.
I accidentally deleted all email in an IMAP email account's inbox, and the changes propagated to the mail server. I found the account's most recent folder in ~/Library/Mail/V9/E3A9C34E-ADFD-463D-92C6-FC061A06XXXX (I changed the last 4 digits to X in this post, just in case (privacy)). That folder contains INBOX.mbox and that folder contains all the mail folders I created, plus Sent Messages.mbox, Sent.mbox, spam.inbox, Trash.mbox, Info.plist, plus a folder named like the alphanumeric string above, but it does not contain inbox.mbox (nor Drafts, Junk (maybe that's 'spam'), Archive).
Therefore when I try to restore in Time Machine, I don't see Inbox. Unless that 32 char string folder *is* the Inbox, I don't know how (or if) I can restore the inbox. I have restored the entire mail store prior to the deletions, to a different location, but am reluctant to restore that to the actual mail folder.
Probably irrelevant, but In Mail, when I right click the account and choose Account Info, Inbox shows with an inbox icon. Other containers have a folder icon (and Sent, Drafts, Archives, Trash, and Junk all have their own icons).
I also have a Carbon Copy Cloner backup, in case that might be a solution.
MacBook Pro 13″