BUG -- IMAP LIST COMMAND...

You’re a user that I’d classify as “mobile” (not always-online)

In your case (a preferred embodiment):

  1. “checkbox” – Cache FULL Messages Locally…
    2)  In a local folder (not in the Roaming folder…)
    3)  In its “raw” format – *.eml  (note that EMC will “associate” with EML files… but, unfortunately, it doesn’t really save any.)

Then, if Windows Search Service was implemented (It even has an indexer that runs in the background)…

It would already have FULL TEXT SEARCHING built-in.  You could even find it by using the “Search” Feature in Windows, or Office, or .

(AND,… Because you are one of those “special cases”… Try this or something else like it. Note that it saves EML format to another folder: Maybe somewhere under your Documents folder? )
https://freeshell.de/~kaosmos/mboximport-en.html
http://www.broobles.com/imapsize/

If you run Linux… there’s a dozen or more of these types of utilities you can use.