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

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Johann Spies
Fecha:  
A: exim-users
Asunto: Re: [exim] Adding those Legal disclaimers to e-mails

    exim-users@???
X-Spam-Score: -2.6 (--)
X-BeenThere: exim-users@???
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: A user list for the exim MTA <exim-users.exim.org>
List-Unsubscribe: <http://www.exim.org/mailman/listinfo/exim-users>,
    <mailto:exim-users-request@exim.org?subject=unsubscribe>
List-Archive: <http://www.exim.org/mail-archives/exim-users>
List-Post: <mailto:exim-users@exim.org>
List-Help: <mailto:exim-users-request@exim.org?subject=help>
List-Subscribe: <http://www.exim.org/mailman/listinfo/exim-users>,
    <mailto:exim-users-request@exim.org?subject=subscribe>
X-List-Received-Date: Mon, 06 Jun 2005 11:16:58 -0000




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


Regards
Johann



-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch


     "Therefore being justified by faith, we have peace with
      God through our Lord Jesus Christ."       Romans 5:1 



VRYWARING: Hierdie vrywaring is bloot 'n toets...

DISCLAIMER: This disclaimer was just added as a test...