procmail
[Top] [All Lists]

Re: Put From/Subject into BODY

1997-03-20 16:10:38
I suggested,

|   # Use ^TO if your procmail doesn't support ^TO_
|   :0c # use c only if you want to forward a copy and file the original later
|   * ^TO_(important|urgent)|^From:.*(important|urgent)\.com
|   {
|    :0h
|    FROMANDSUBJECT=|formail -XFrom: -XSubject:
|
|    :0fwh
|    | formail -I"From: furu009.com" -I"Subject: forwarding to pager" \
|          -I"To: 0399999999(_at_)docomonet(_dot_)or(_dot_)jp" ; echo 
"$FROMANDSUBJECT" ; echo
|
|    :0
|    ! -t
|   }
|

Oops -- the argument to the first -I option of formail should be
"From: furu(_at_)009(_dot_)com", of course; sorry.