Re: [exim] Append an HTML to outgoing Email

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Matt
日付:  
To: exim
題目: 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