I'm sure there is a fancier/shorter way to do it but I do this:
# Capture the subject and put it in $SUBJECT
:0
* ^Subject:(.*\<)\/[^ ].*
{ SUBJECT=$MATCH }
# Add in the text before the original subject line
:0 hfw
| /opt/local/bin/formail -i "Subject: Out of Office Autoreply RE: $SUBJECT"
-Chris
At 03:02 PM 3/5/2004 +0000, Paul Dean wrote:
Hi,
Can anyone help me to alter this recipe so that the original subject line is
appended to "Subject: Out of Office Autoreply RE:"
Thanks,
Paul
OSUBJ=""
NSUBJ="Subject: Out of Office Autoreply RE:"
VERBOSE=1
LOGFILE=$MAILDIR/procmail.log
:0 h c
* !^FROM_DAEMON
* !^X-Loop: me(_at_)myhost(_dot_)com (formail -r -I"Precedence: junk" -A
"X-Loop:
me(_at_)myhost(_dot_)com" ; echo $NSUBJ; cat vacation.txt)|$SENDMAIL -t
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail