procmail
[Top] [All Lists]

Re^2: Put From/Subject into BODY

1997-03-19 23:39:06
Tim <bodysurf(_at_)pobox(_dot_)com> and 
Stan Ryckman <stanr(_at_)sunspot(_dot_)tiac(_dot_)net>
Thanks for advice.

I tried your script 
but it seems to fail at the first two lines.
What does it mean and how should I correct?

-xTo:: Cannot open
-zx: Bad option(s)
procmail: Error while writing to ""
procmail: Skipped..........
...........................

By the way, is FROM=`$FORMAIL -rt -xTo:` correct?
Isn't it FROM=`$FORMAIL -rt -xFrom:`?
I also tried this version but also failed though.

TIA
_/_/_/      Mitsuru FURUKAWA      _/_/_/
_/_/_/        Tokyo, Japan        _/_/_/
_/_/_/     mailto:furu(_at_)009(_dot_)com    _/_/_/
_/_/_/  http://www.009.com/furu/  _/_/_/

Tim> At 07:35 PM 3/19/97 -0800, you wrote:
Tim> 
Tim> Yes, I screwed up...  The "fixed" version (I think) is below.  Changing the
Tim> `cat` to `echo` and sticking in the '|' before the '$FORMAIL':
Tim> 
Tim> >  FROM=`$FORMAIL -rt -xTo:`
Tim> >  SUBJECT=`$FORMAIL -zx 'Subject: '`
Tim> >
Tim> >  :0 c:
Tim> >  * (^To:.*(important|urgent)|^From:.*(important.com|urgent.com))
Tim> >  (| $FORMAIL -i"From: furu(_at_)009(_dot_)com" -i"Subject: forwarding to 
pager" \        
Tim> >   -i"To: 0399999999(_at_)docomonet(_dot_)or(_dot_)jp"; echo "From: 
$FROM"; \ 
Tim> >   echo "Subject: $SUBJECT") | $SENDMAIL -oi -t
Tim> 
Tim> 
Tim> Lates!
Tim> ---------------------------------------------------------------------------
Tim> Tim <bodysurf(_at_)pobox(_dot_)com>                          
mailto:bodysurf(_at_)pobox(_dot_)com
Tim> Finger bodysurf(_at_)pobox(_dot_)com for my PGP public key (Bits 
1024/KeyID 09DA5C49).
Tim> PGP Key FPrint (09/03/94): 4C 97 F1 FA 70 55 68 91  49 D1 AD F2 DD 63 0C 15
Tim> ---------------------> Please PGP encrypt your email <---------------------
Tim> 
Tim>