Le 09/03/2016 04:13, Gordon Messmer a écrit :
> On 03/08/2016 05:21 PM, Jérôme Blion wrote:
>> What do you think about that?
> I'd like to do something more general to make filters conditional on the
> results of others, but I haven't given it the time...
>
> Maybe something like:
>
> whitelist_auth conditional
> comeagain if not whitelist_auth
> attachments
> spamassassin
> clamav
> log_aliases
> noduplicates
>
> Wouldn't be very hard to parse.  Any better ideas?
>
Hello

Right now, filters have 3 kind of replies:
  - accept
  - reject
  - neutral

Do you agree with me?

A word like "THEN" or "OR" could do the trick :
   whitelist_auth OR/THEN comeagain
   attachments
   spamassassin
   clamav

To pass, a mail should go through all rules until a 200, 400, 500 has 
been raised or the end of filters' list.
We could consider each line delimits a filtering rule. This line should 
end with an only one accept/reject/neutral situation :
  - all filter in a line could reject the mail (4xx/5xx). The first 
reject is enough.
  - only the last filter could accept it (2xx code). It means previous 
2xx codes are silently transformed to neutral
  - the last filter may return a neutral

Now, I only worked on filters, I didn't look at the main code... I have 
absolutely no idea about the needed work to implement that :-)

What do you think about that ? Would it be easily feasible?

HTH.
Jerome Blion.

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to