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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Josip Rodin
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] adding a header to a message in an ACL, ?even when the condition defers
On Sun, Nov 12, 2006 at 12:26:19PM +0100, Josip Rodin wrote:
> > > I really think[1] this fixed version should work, although you still get
> > > Warning: ACL "warn" statement skipped: condition test deferred: Could
> > > not complete sender verify callout in the logfile.
> >
> > And the same will work with 'warn message'? I don't want to have to upgrade
> > to 4.63 (to get add_header) since I'm running 4.50 from Debian stable.
>
> Yep, it works, although it still logs the annoying skipped message. Oh well.
>
> > Also, could I perhaps somehow differentiate between defer and fail,
> > other than parsing $acl_verify_message?
>
> Unfortunately, I can't seem to *get* $acl_verify_message, either.
> The headers come in:
>
> X-Exim-ACL-envelope-sender-verify: failed ()
> X-Exim-ACL-header-sender-verify: failed ()
>
> Then I figured that the variable is getting lost due to the ending of the
> verb that generated it, and I then tried doing this:
>
>   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?

-- 
     2. That which causes joy or happiness.