Re: How to remove the [EXIM] from the subject?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Vadim Vygonets
Dátum:  
Címzett: exim-users
Tárgy: Re: How to remove the [EXIM] from the subject?
Quoth servis@??? on Wed, Oct 07, 1998:
> Because the messages for this list are being saved to a
> seperate folder I do not whish to keep the [EXIM] in the subject. How
> can I remove the [EXIM] as I save it to a file?


You can use the exim filter "pipe" command to pipe the e-mail
message to a simple perl script which will do
s/^(Subject:.+)\[EXIM\]\s*/$1/;
the first time it sees it and save the message to your mailbox.
But then, the subject of this message will become:

Subject: Re: How to remove the from the subject?

To avoid it, you can do something more complex, like:
s/^(Subject:\s+(Re:\s*)?)\[EXIM\]\s*/$1/;

Further perversities are left as an exercise to the reader.

I'm not sure how exactly the pipe mechanism works, so you might
want to use "unseen" to generate two saves of the message while
you're testing this stuff.

Vadik.

-- 
It was state of the art, he said.
The art in this case was probably pottery.
    -- Terry Pratchett and Neil Gaiman, "Good Omens"


--
*** Exim information can be found at http://www.exim.org/ ***