procmail
[Top] [All Lists]

Re: Put From/Subject into BODY

1997-03-19 22:28:14
At 07:35 PM 3/19/97 -0800, you wrote:

Yes, I screwed up...  The "fixed" version (I think) is below.  Changing the
`cat` to `echo` and sticking in the '|' before the '$FORMAIL':

      FROM=`$FORMAIL -rt -xTo:`
      SUBJECT=`$FORMAIL -zx 'Subject: '`

      :0 c:
      * (^To:.*(important|urgent)|^From:.*(important.com|urgent.com))
      (| $FORMAIL -i"From: furu(_at_)009(_dot_)com" -i"Subject: forwarding to 
pager" \        
       -i"To: 0399999999(_at_)docomonet(_dot_)or(_dot_)jp"; echo "From: 
$FROM"; \ 
       echo "Subject: $SUBJECT") | $SENDMAIL -oi -t


Lates!
---------------------------------------------------------------------------
Tim <bodysurf(_at_)pobox(_dot_)com>                          
mailto:bodysurf(_at_)pobox(_dot_)com
Finger bodysurf(_at_)pobox(_dot_)com for my PGP public key (Bits 1024/KeyID 
09DA5C49).
PGP Key FPrint (09/03/94): 4C 97 F1 FA 70 55 68 91  49 D1 AD F2 DD 63 0C 15
---------------------> Please PGP encrypt your email <---------------------