When importing from a Gmail account in Apple Mail, it is best to select the messages to import, rather than selecting the mailboxes. This ensures that EagleFiler will be able to find the message data on disk.
The messages may end up in an EagleFiler mailbox called All Mail or Archive, even if you had selected the messages in a mailbox of a different name. This happens because the message exists in both mailboxes on the Gmail server, and Apple Mail sometimes saves space by only storing a single copy of the message. It tells EagleFiler that the message is in All Mail, since that’s where it’s storing the message, so that’s the mailbox name EagleFiler uses. You can prevent this from happening by configuring Gmail not to show the All Mail mailbox in Apple Mail:
When capturing a Gmail message, you may get an error saying that EagleFiler couldn’t find the All Mail mailbox on disk. This happens for a related reason, that Mail is choosing to only store the message in the non-archive mailbox. Hiding All Mail from IMAP will also fix this problem. Or, you can copy the messages to an On My Mac Apple Mail mailbox before capturing them or choose Mailbox ‣ Export Mailbox… and then import the exported file into EagleFiler.