Re: [exim] Preservation of $spam_action variable

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jeremy Harris
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] Preservation of $spam_action variable
On 22/03/2021 16:35, Paul Warren via Exim-users wrote:
> The documentation says:
>
> "When the spam condition is run, it sets up a number of expansion variables. Except for $spam_report, these variables are saved with the received message so are available for use at delivery time."
>
> https://www.exim.org/exim-html-current/doc/html/spec_html/ch-content_scanning_at_acl_time.html#SECID206
>
> It seems that that "spam_action" isn't preserved either:
>
> https://github.com/Exim/exim/blob/master/src/src/spool_out.c#L238
>
> I'm I missing something, or is this just an omission from the docs?


Looks like the latter. The variable was added in 2015, postdating
the merge of EXISCAN in 2004, and there was no code in that commit
(c5f280e20a) passing it via the spool.

I could touch up the docs, or just add the code (if you want to
do the latter yourself, it's pretty obvious for both the reading
and writing sides). I'm assuming it's likely to be a short string.
--
Cheers,
Jeremy