getMessages, like almost all our backend interfaces, takes an 
nsIMsgWindow so that it can show progress and status, and do stop as 
well. Doing those things requires some way of knowing the window you're 
running in.

nsnull should be allowed, however.

- David

Ben Bucksch wrote:

> 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
> 



Reply via email to