Sam Varshavchik <[EMAIL PROTECTED]> writes:

> Lloyd Zusman writes:
>
>> Sam Varshavchik <[EMAIL PROTECTED]> writes:
>>
>> [ ... ]
>>
>>> No, the filters are NOT invoked in any particular order.
>> Oh ... OK.  So, could you point me to the place in the Courier source
>> code where the filters get invoked? [ ... ]
>
> courier/cdfilters.C, run_filter().
>
> The code reads the directory, and just opens each socket file that it
> gets, on the fly.  You want to modify run_filter().
>
> This is also very old code, and not something that I'm especially proud
> of…

Thank you.

Yes, I can see that this is done via a couple of simple readdir() loops.
How about if I just put something in there that sorts the file names in
ascending ASCII sequence?  Then, I could make use of prefixes like
"00-", "01-", etc. to cause the filters to be invoked in the order that
I desire.

I'll have some sort of patch within a couple days.


-- 
 Lloyd Zusman
 [EMAIL PROTECTED]
 God bless you.



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to