Lindsay Haisley writes: > Thus spake Lindsay Haisley on Wed, May 01, 2002 at 09:07:35PM CDT >> Thus spake Sam Varshavchik on Wed, May 01, 2002 at 07:21:06PM CDT >> > Lindsay Haisley writes: >> > >> > > In order for a system courierfilter [...] >> > > to be in the loop, my understanding is that rcptfilter >> > > _must_ return an exit code of 99. [...] >> > >> > rcptfilter and smtpfilter API is a >> > per-recipient API; this is completely separate from the >> > global filter APIs >> >> if rcptfilter returns 0 (or rcptfilter doesn't exist), >> the message is effectively whitelisted and the global filter is bypassed > > Proper processing by local filters in .mailfilters (i.e. > rcptfilter returns 99) in an alias@domain hosteddomain account requires > rcptfilter-ext, which can be rcptfilter-default if necessary. This enables > global filters. Failure to find a proper rcptfilter file effectively > whitelists mail through the account and global filters are bypassed. > > Very nice! The more I work with my courier setup the more impressed I am > with the fine granularity of control I have over stuff. It's damned > elegant!
Yes. However, I still cannot explain to myself why it is not the opposite way around. More precisely: one advantage of the global filter is that it consists of a compiled program (well, then perlfilter will invoke an interpreter in turn, but this is a special case, isn't it?). Then one would think that a global filter filters all the mail (allfilter) and another filters nearly all the mail, leaving alone a few accounts that may have special needs. Instead, I should set up every account except the one that I want to whitefilter. At least, I have to have a script be invoked for every account that must be filtered. Why? Is there a rationale that I am missing? Anybody feels like telling us how it began? And how will it evolve? TIA Ale _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
