Chris Waterson wrote:

> You could do this by watching the mail datasource directly (e.g., by
> implementing the nsIRDFObserver interface), or by using DOM mutation
> events. cc'ing mailnews folks.

also, take a look at bug #64947

It describes what I'd like to do to the current code and interfaces to make
adding another biff listener easier and our code cleaner.

it's not too much work, and when complete, all you'd have to do is implement a
simple interface and register as a member of a certain category.

if we don't fix #64947, you're going to find yourself duplicating the code in
nsStatusBarBiffManager.cpp.

you'll implement a nsIFolderListener, register with the "mail session service" as
a listener on the "BiffState".

-Seth

> 
> Neil wrote:
> 
>> I want to be able to watch for attribute changes (e.g. HasUnreadMessages
>> or BiffState) to the selected row in Messenger's folder tree. Should I
>> be trying to do this using RDF? If so, what would be involved? If not,
>> what should I use instead?


Reply via email to