Once again, I hit a kind of a brick wall... How could I go through all
the messages in a given Thunderbird message folder, namely I want to
process their headers (not only new/unread messages, but all of them).
I am developing an extension which will sort and gather information
about messages, but currently it only processes messages which are
received while TB is running. I need functionality to scan for new
messages at startup, and manually scan a folder initiated by user. As a
starting point I just have the nsIMsgFolder element.
nsIMsgFolder has a method getMessages(), but I'm not sure what it
actually does or how you're supposed to use it. Didn't find any good
reference for it so far. Or should I use the search functionality somehow?