Re: [exim] Variables in Exim

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: W B Hacker
Ημερομηνία:  
Προς: exim users
Αντικείμενο: Re: [exim] Variables in Exim
Sachin Sharma wrote:
> Hi,
>
> Is there any way for using variables into exim filter or into
> configuratuin file ? Like i need to rewrite Subject for a mail. I want
> to save Subject into Variable, then remove and then want to insert
> subject with [SPAM] tag.
>
> I done this by a diffrent way,
>
> First, Saved Subject into new header X-Subject
> Second, Removed Subject header
> Third, Added Subject with [SPAM] tag
>
> This is wrking perfectly well and a temporary header is used in place of
> variable. However i m looking for usage of any variable (Quick Way)
> rather with tempraory header !!
>
> if $message_headers contains "X-DSPAM-Result:"
> then
> headers add "X-Subject: $h_subject"
> headers remove Subject
> headers add "Subject: [SPAM] $h_X-Subject"
> unseen
> endif
>
> Please help !! Thanks
>
>


acl_m(x) variables travel into the queue with the message headers and body, and
may be called by routers.

CAVEAT; on leaving the acl_smtp_data phase, there is only ONE SET of these (per
message, not per-recipient).

Bill