procmail
[Top] [All Lists]

Re^2: Put From/Subject into BODY

1997-03-21 16:51:50
Era,
It is little bit embarrasing to confess but
it was "commented condition line" which was making trouble:-<
The recipe is working fine now! ARIGATO!

#Thanks to all the people who gave me kind advices.
#I will try all the recipes later and 
#pick most efficient and easy-to-modify one.

Now, I have 3 more questions.
(1) My pager currently displays only 100 bytes 
but it might be expanded to 200 bytes in near future.
    How could I add BODY after the FROM/SUBJECT?
(2) How could I replace "Subject: " and "From: "
    with say "S: " and "F: "
    so that I can save 9 bytes out of 100.
    Or just eleminate them if it would be easier or efficient.
(3) I want messages sent to pager to be saved in tonttdocomo.
    My modification to the recipe does not seem to work:-<
    No error but no mail saved.
    Please give me advice.
    
# Want a 'c' here? That would leave a second copy in your inbox
:0 c
* (^To:.*(xxx(_at_)xxx|xxx(_at_)xxx)|^From:.*(xxx(_at_)xxxx|xxx(_at_)xxx))
{ 
 :0fH  # Filter original header, leave only Subject and From
 | egrep '^(Subject|From):'

#: this empty line is the end of the new header ;
#: cat original message, incl. headers ;

#  :0     # Actually forward to pager
 :0 c     # Actually forward to pager
 | ( echo "Subject: Forwarding to pager2" ; \
    echo "To: 0399999999(_at_)xxxx(_dot_)docomonet(_dot_)or(_dot_)jp" ; \
    echo "Cc: furu(_at_)009(_dot_)com" ; \
    echo "From: furu(_at_)009(_dot_)com" ; \
    echo ;    \
    cat - ;   \
   ) | $SENDMAIL -oi -t
   
 :0:
    tonttdocomo
} 

Thanks in Advance,
P.S. Mitsuru is correct. Mailer setup was wrong:-<
_/_/_/      Mitsuru FURUKAWA      _/_/_/
_/_/_/        Tokyo, Japan        _/_/_/
_/_/_/     mailto:furu(_at_)009(_dot_)com    _/_/_/
_/_/_/  http://www.009.com/furu/  _/_/_/

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