Re: [exim] Remove Tags from Subject

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Wakko Warner
Data:  
Para: Justin Koivisto
CC: exim-users, jas2803
Assunto: Re: [exim] Remove Tags from Subject
Justin Koivisto wrote:
> JAS wrote:
>
> >I am not using spam assassin, this is being marked by a different system
> >then sending it to mine. I figured out how to add stuff to the subject
> >but, removing proves to be more difficult.
> >I was thinking maybe somehow piping it, e.g. echo "[SPAM] this is spam"
> >| sed -e 's/\[SPAM\]//'
> >Removes [SPAM] just fine.
>
> If you can set up a system filter, you can add and remove headers... I
> haven't tested this at all (and have never tried something like this
> either), but you might be able to do something like this:
>
> if $h_Subject matches "/^\\[SPAM\\](.*)$" then
>         headers add "New-Subject: $1"
>         headers remove subject
>         headers add "Subject: $h_New-Subject:"
>         headers remove new-subject
> endif

>
> I've only been using exim for a few months now, so if this doesn't work,
> someone else will probably fix my mistakes. ;)


Why not use ${sg ??

--
Lab tests show that use of micro$oft causes cancer in lab animals