procmail
[Top] [All Lists]

Re: [COPY] Inserting a word into a subject name

1996-01-22 14:37:28

Hey! I think I know this one (because someone here told me how)

I wanted it for slightly different reasons, but I think this will do it 
for you:

# create an environmental variable we can use is all sorts of different 
# receipes
SUBJECT=`formail -xSubject:`

:0c
*^Subject: *
{
        :0fhw
        | formail -I "Subject: [COPY] $SUBJECT"
 
        :0
        ! 476tjl(_at_)ptsmail(_dot_)ptsem(_dot_)edu
 
}

This receipe will match on all subject!  
It takes the original subject and munges it a bit, and then forwards it 
to my other account.  Because of the 'c' on the first line it will still 
leave a copy locally.

I think all you would have to do would be add as many :0 followed by ! 
address(_at_)wherever(_dot_)com inside the bracket.

Any questions, please feel free to ask!


--
Timothy J. Luoma <luomat(_at_)capitalist(_dot_)princeton(_dot_)edu> 
Swapfile and Swapdisk FAQ available via email!  Send email with subject:
'send_info' for more info or with subject 'send_swapfaq' to receive the FAQ.
     NeXT PPP Mailing List: nextppp(_at_)listproc(_dot_)thoughtport(_dot_)com



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