procmail
[Top] [All Lists]

Adding text to the email body fails with attachements

2004-12-16 12:44:29
I have need to recieve emails to a particular address and add some text to the 
email body and forward this email to another address.  Adding text to the body 
works out fine but when the incoming email includes an attachment the added 
text doesn't appear.  This is a problem as all the emails are supposed to 
include various attachments.

Below is the recipe that I have now.

:0
#* ^Content-Type: *text/plain
{
:0 fhb
| formail -k Subject -I ""

:0 fhw
| cat -; echo "" | cat -; echo "       |QwNSQxJHlldmlzTjlPJDVnYWx1dj|"
}

:0ac
#*^subject:(.*\<)?test\>
*!FROM_DAEMON
!someemail(_at_)somewhere(_dot_)com


I have also just tried using the cat line without the formail and that works 
to.  Any ideas why the emails with attachments fail the cat/echo.  All email 
coming from Microsoft mailers.


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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