Re: [exim] Filters: "finish" and "seen finish" in "if ... el…

Página Inicial
Delete this message
Reply to this message
Autor: Adam Funk
Data:  
Para: exim-users
Assunto: Re: [exim] Filters: "finish" and "seen finish" in "if ... elif ... endif".
On 2008-04-24, Peter Bowyer wrote:

>> Will the "seen finish" in this
>>
>>    ...
>>    elif  ~~~spam_condition~~~
>>    then
>>       # silently drop very high spam scores
>>       seen finish
>>    elsif  ~~~other_condition~~~
>>       save $home/Maildir/
>>    elif
>>    ...

>>
>> adversely affect the conditions that come after it?
>
> 'seen finish' means 'stop processing the filter, and consider the
> message delivered'. Only you know if that's the outcome you want at
> that point in your filter.


OK, it's equivalent to "return();" --- thanks. ;-)

> The 'seen finish' won't be processed if the 'spam_condition' isn't met
> - that's normal if-then-else processing.


My filter has always consisted of one "if ... elif ... elif ... endif"
block; I think I got confused because some examples don't stop at the
"endif".

Thanks for the advice.