1 Dec 2004 02:14
Re: Headers
Wakko Warner <wakko <at> animx.eu.org>
2004-12-01 01:14:13 GMT
2004-12-01 01:14:13 GMT
> closer,
>
> Remove_Headers = Subject:
> headers_add = "X-Filter: $primary_hostname \n\
> Subject: ${sg{\[SPAM\]}{h_subject:}} \n\
>
> Gives me [] subjecttext
> I need to get rid of [] now
Please don't top post.
Got the ordering wrong. Try this:
${sg{$h_subject:}{\N\[SPAM\] *\N}{}}
Here's the test I did with exim -be:
${sg{[SPAM] random subject}{\N\[SPAM\] *\N}{}}
returns: "random subject" (no quotes)
> wakko <at> animx.eu.org wrote:
> >JAS wrote:
> >>I am trying to remove the word spam from a subject line this is what I
> >>tried.
> >>headers_add = "X-Filter: $primary_hostname \n\
> >> new-subject: ${sg{\[SPAM\]}{h_subject:}} \n\
> >> Subject: $h_new-subject:"
> >>I get
> >>router failed to expand "X-Filter: $primary_hostname \nnew-subject:
> >>${sg{[SPAM]}{$h_subject}} \nSubject: $h_new-subject:" missing or
> >>misplaced { or }
> >>does anyone have experience with this that works and would like to
(Continue reading)
RSS Feed