How to backup email from IMAP (gmail) offline on the macos mail
I created a folder in "On My Mac" account/section and moved some few thousand messages from gmail Archive mailbox.
Then, I manually deleted those messages from gmail (online) and emptied bin.
Now, those messages are being purged from my "On My Mac" folder, indicating that for some reason what was moved into supposedly offline account was just a pointer to an online resource.
It is called irretrievable data loss and I'm not happy about it.
How to create an offline only archive of messages?
MacBook Air 13″, macOS 12.6