On 6/28/2012 10:46 AM, Onno Ekker wrote:
> I still would like to know why type is always zero and why
> isValidForType is called twice.
The custom filter code was added to the core Thunderbird by me many
years ago, and I am probably its biggest user in my FiltaQuilla extension.
But I don't really know the answer to your questions. I spent a couple
of minutes searching through the raw code using
http://mxr.mozilla.org/comm-aurora/, but that did not provide any
obvious answers to your questions. I doubt if anyone can answer your
questions short of instrumenting and debugging in the core code.
I can tell you that type comes from a global set in the filter editor.
rkent