At 07:35 PM 3/19/97 -0800, Tim wrote:
[snip]
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"; cat "From:
$FROM"; \
cat "Subject: $SUBJECT") | $SENDMAIL -oi -t
How's that?
Not very good. Replace the two "cat"s above with "echo" and you'll be
closer.
cat "From: $FROM"
will try to (and undoubtedly fail to) copy a file by that name out
to stdout. Similarly for
cat "Subject: $SUBJECT"
Not sure but doesn't the line starting with "($FORMAIL" need a "|"
at the beginning of it?
I also "see" trailing white space after one of your "\" characters;
that's a no-no.
It still doesn't forward the original message body but it's not clear
to me whether the original poster wanted that (for a pager) or not.
Cheers,
Stan