Hello Yukata, Thanks for your time and your responses. I spend the day working with the product. After spending some weeks using it, I can say that the product are great but I found, at start the manual quite hard to apprehend. I played a lot with the CFI script and I manage with the second unit to rewrite the subject and the from: field. ---------------------------------- #!cfi Content-Type: text/plain Content-Type: text/html Body-Filter: echo "something" -- Header-Filter: sed -e 's/^From: [+-z]*/From: the@email../g;s/^Subject: [!-~]*/Subject: The Subject Wanted/g ----------------------------------- The last thing I wanna do is to rewrite only the body of the mail, excluding the MIME type png or gif. I don't find a efficient way to do it. The simplest way I can think about (the first unit) was to write only the body when it match the type "text" ; but it didn't work. Any idea to enlight me ? Have a nice evening (or day, depending of the location). -- Simon Guilhot 2010/4/29 Yutaka Sato <feedback@delegate.org> > Hi, > > In message <_A4796@delegate-en.ML_> > on 04/29/10(18:40:50) > you Garbage Mail <pxqjabdyi-qghxypn6e3y6.ml@delegate.org> wrote: > |One of my choice is to clean out the body of the content (or rewrite it). > |I've planned to use the SMTPGATE directive but I realise that I cant find > |something to do it in the manual. > | > |So I will be glad if someone have an anwser to these questions : > | > | - Is it possible to manipulate the body with delegate ? > > You can filter message data over SMTP (and other protocols) using > "CFI script" with external filter probgrams. For example, the following > example will add line number for each line in a message body. > > FTOSV=smtp.cfi > > [the content of DGROOT/etc/smtp.cfi] > #!cfi > Body-Filter: /bin/cat -n > > > | - Emptying or rewriting the body will remove the attached docs ? > > You can do any rewriting by yourself. > > Cheers, > Yutaka > -- > 9 9 Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/ > ( ~ ) National Institute of Advanced Industrial Science and Technology > _< >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan > Do the more with the less -- B. Fuller >