procmail
[Top] [All Lists]

inserting text and expanded variables in front of the body of msg

2001-02-15 07:25:22
Hello all,

I am using a recipe (by Philip Guenther) to catch emails with attachments
and it's working fine.
Now I am trying to insert some comments to the body of the received mail but
its not working.
The mail is forwarded as it was received, without the added body.
Could someone point me out what need to be fixed?

Thank you in advance,

Carlos

:0 B
* $ ^Content-(Type|Disposition)*:${dotstar}name${ws}=${ws}${dq}.*${ext}${dq}
{
  SUBJ_=`formail -c -xSubject:`
  FROM_=`formail -c -xFrom:`
  TO_=`formail -c -xTo:`

  :0 fhw
  | cat - ; \
    echo "===== Filtered email - (stop.rc) ====="; \
    echo "Subject: $SUBJ_"; \
    echo "From   : $FROM_"; \
    echo "To     : $TO_"; \
    echo "======================================"

   :0
   ! rivellis(_at_)terra(_dot_)com(_dot_)br
}

LOG:

procmail: Assigning "INCLUDERC=/home/consultor/.procmail/stop.rc"
procmail: Assigning "ws=[       ]*($[   ]+)*"
procmail: Assigning "dotstar=.*($[      ].*)*"
procmail: Assigning "dq=""
procmail: Assigning "ext=\.(xls|scr|vbs|shs|bat|com|exe|pif)"
procmail: Match on
tent-(Type|Disposition)*:.*($[  ].*)*name[      ]*($[   ]+)*=
[       ]*($[   ]+)*".*\.(xls|scr|vbs|shs|bat|com|exe|pif)""
procmail: Executing "formail,-c,-xSubject:"
procmail: Assigning "SUBJ_= test w/ attatchment"
procmail: Executing "formail,-c,-xFrom:"
procmail: Assigning "FROM_= "Carlos Eduardo R. L. de Miranda"
<consultor(_at_)linuxbr(_dot_)com(_dot_)
br>"
procmail: Executing "formail,-c,-xTo:"
procmail: Assigning "TO_= "test" <consultor(_at_)galena(_dot_)com(_dot_)br>"
procmail: Executing " cat - ; \
    echo "===== Filtered email - (stop.rc) ====="; \
    echo "Subject: $SUBJ_"; \
    echo "From   : $FROM_"; \
    echo "To     : $TO_"; \
    echo "======================================""
procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi
rivellis(_at_)terra(_dot_)com(_dot_)br"
From consultor(_at_)linuxbr(_dot_)com(_dot_)br  Thu Feb 15 09:39:28 2001
 Subject: test w/ attatchment
  Folder: /usr/sbin/sendmail -oi rivellis(_at_)terra(_dot_)com(_dot_)br
2149
procmail: Executing 
"/usr/sbin/sendmail,-oi,rivellis(_at_)terra(_dot_)com(_dot_)br"

_______________________________________________
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>