procmail
[Top] [All Lists]

Re: Munging Subject field

1996-09-06 22:56:09

Hmm... This might be of use.... if so it would be a first for me.....


SUBJECT=`formail -xSubject:`

:0c
* ^TO*luomat
* !^FROM_DAEMON
{
        :0fhwc
         | formail -I "Subject: [nerc] $SUBJECT"

        :0
        !476tjl(_at_)ptsmail(_dot_)ptsem(_dot_)edu
}


I use that to forward messages which are sent to one account to  
another account, with a new subject....

I suppose it would be easy enough to add something like:

* !^Subject: [nerc]

somewhere (perhaps check before the "formail" line)



-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Timothy J. Luoma <luomat(_at_)nerc(_dot_)com>       http://www.nerc.com/~luomat
Email Auto-Responder: for PGP key,   use SUBJECT: send-ascii pgpkey
                      for NeXT info, use SUBJECT: send-ascii info
Also, see: http://www.nerc.com/~luomat/next
        LOOKING FOR NS 3.3 (m68k) User/Dev (cheap ;-)

<Prev in Thread] Current Thread [Next in Thread>