RE: [Exim] Rewriting based on subject line?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: John Horne
Dátum:  
Címzett: exim-users
Tárgy: RE: [Exim] Rewriting based on subject line?
On 25-May-00 at 10:19:58 D.M.Chapman wrote:
> Is there an easy way of rewriting a sender address depending on the
> subject line. We have a brain dead piece of software that sends all email
> from one account (say fred@???). We currently rewrite this with a
> normal rewriting rule. However, we now need to rewrite it to one address
> if the subject line starts with a certain magic word and to another in
> all other cases. Ideally removing the magic word in the process but we
> could live without that.
>

Perhaps - and no idea if it would work! - a rewrite rule like:

  fred@???   "${if match {$h_Subject:} {/^magic/} \
                               {eric} {paul}}@???"         T


So that the envelope RCPT TO address gets rewritten if it initially matches
'fred@???'. Of course it depends if $h_Subject: is set. You'll need
to check the syntax of the if/match bit too.

John.

--------------------------------------------------------------------------
John Horne, University of Plymouth, UK             Tel: +44 (0)1752 233914
E-mail: jhorne@???
PGP key available from public key servers