I had to add a call to GetDatabase to the GetMessages IMAP impl.. I
guess, the same can be done for Local. news works out-of-the-box.
Also, I changed some other code in nsMsgProtocol; not sure, if that was
needed.
Now, I can use the GetMessages interface method by just passing nsnull
as nsIMsgWindow. When I submit teh code changes, I'll add a comment to
that effect in the IDL file.
If there is any problem with that solution that I just didn't run into
yet, please tell me.
Now up to figuring out how to get the actual msg body... :)
Ben