Re: [exim] Adding those Legal disclaimers to e-mails

Página Inicial
Delete this message
Reply to this message
Autor: Matt Fretwell
Data:  
Para: exim
Assunto: Re: [exim] Adding those Legal disclaimers to e-mails
Johann Spies wrote:

>
>
> Thanks to Kjetil who helped me.
>
> In the end I decided to try a ruby script and the following seems to
> work:
> ======================
> #!/usr/bin/ruby
>
> require 'tmail'
>
> mail = TMail::Mail.parse( $stdin.read )
>
> disklymer = "\n\nDISCLAIMER: This disclaimer was just added as a
> test... \n"
>
>
>   if not mail.key?("X-Disclaimer") then
>     mail.[]=("X-Disclaimer","added")
>     if mail.multipart? then    
>       mail.preamble += disklymer

>
>     else
>       mail.body += disklymer
>     end
>   end
> puts mail.encoded
> =========================



Will that not cock up the formatting on MIME multipart's?


Matt