procmail
[Top] [All Lists]

How do I get the message body ???

2002-08-11 01:17:45

I'm trying to write a .procmailrc file that does an auto-reply
and then does 
a) Sends a one line messsage back to the sender and #
b) Sends the whole message back to the sender. 

However, so far I seem unable to do (b). What is odd is that 
if I have a simple procmail rc file that simply puts its standard input
to a file (not calling formail or anyting like that), the file only
gets the messages's headers, not the body. 

I've put my .procmailrc below. I have bits commented out, so you can see
what I'm trying to achieve, but the main worry at the minute is the very 
last lines appears only to put the headers into a file 'm'



HOME=/home/duke/davek2
PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:.
MAILDIR=$HOME/Mail      # You'd better make sure it exists
DEFAULT=$MAILDIR/mbox
LOGFILE=$MAILDIR/log
LOCKFILE=$MAILDIR/lockmail
VERBOSE=yes
SENDMAIL=/usr/lib/sendmail
FORMAIL=$HOME/bin/formail

:0
* ^Subject: .*foo
/var/mail/davek2

:0 h c
* !^FROM_DAEMON
* !^X-Loop: davek2(_at_)medphys(_dot_)ucl(_dot_)ac(_dot_)uk
#| ($FORMAIL -r -b -k -I"Precedence: junk" \
#  -I "spam-rm: Filtered for spam using spam-rm by Dr. David Kirkby" \
#  -I "spam-Password: foo" \
#  -I "" \
#  -I "From: Dr. David Kirkby Test 
<davek2(_at_)medphys(_dot_)ucl(_dot_)ac(_dot_)uk>" \
#  -A"X-Loop: davek2(_at_)medphys(_dot_)ucl(_dot_)ac(_dot_)uk" ) | $SENDMAIL -t 
-B 7BIT
| cat > $HOME/m

Dr. David Kirkby
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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