Re: [exim] adding a header to a message in an ACL, ?even whe…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Josip Rodin
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] adding a header to a message in an ACL, ?even when the condition defers
On Tue, Nov 28, 2006 at 11:08:06PM +0100, Josip Rodin wrote:
> > Unfortunately, I can't seem to *get* $acl_verify_message, either.
> >
> >   warn set acl_m2 = failedordefered
> >        verify = sender/callout=60s
> >        set acl_m3 = $acl_verify_message
> >        set acl_m2 = ok
> >   warn condition = ${if eq{$acl_m2}{failedordefered}{true}{false}}
> >        message = X-Exim-ACL-envelope-sender-verify: failed ($acl_m3)

> >
> > However, there's still nothing in there.
>
> Oh, I just noticed something. I'm actually seeing "( )" there. Does that
> make any difference? Maybe it's the space between = and $... so anyway,
> why would this variable be empty, what am I missing?


Ignore that last bit, I also tried logging another variable that doesn't get
included next to it, $sender_verify_failure.

This sentence from the documentation is a bit puzzling:

    Like "log_message", the contents of "message" are not
    expanded until after a condition has failed.


That would explain this behaviour - I was trying to get 'warn message' to
add the header when the condition is met, instead. Should I invert the
logic?

-- 
     2. That which causes joy or happiness.