Re: [exim] Append an HTML to outgoing Email

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Matt
Date:  
À: exim
Sujet: Re: [exim] Append an HTML to outgoing Email
Matt wrote:

> #!/bin/sh
> #
> disclaimer=/path/to/disclaimer.txt
> #
> ed -s tmpfile << disclaimer
> $
> r ${disclaimer}
> .
> wq
> disclaimer



Just for the sake of correctness, that should be:

#
#
disclaimer=/path/to/disclaimer.txt
#
ed -s tmpfile << disclaim
$
r ${disclaimer}
wq
disclaim
#
#

The dot on the line before wq is not required. The #!/bin/sh line isn't
required either, as it is being read into the first shell script.

Also, another thing to consider is that appending disclaimers will break
digital signatures, which is another reason for it preferably to be done
within the MUA itself.

Matt