-   Linux - Newbie (
-   -   isclaimer not added on reply (

caheotrang 06-13-2008 02:39 AM

isclaimer not added on reply
I create disclaimer as below
I want to disclaimer not added on reply. How I do?

unSpawn 06-13-2008 06:21 AM

E-mail travels between servers you have no control over. So unless you have consulted a lawyer to verify the validity of claims in your "disclaimer" plus force use of encrypted messages that authenticate sender and receiver, don't expect anyone to take notice of it. Disclaimers look "official" but have as much value as say yesterdays newspaper. Adding a "disclaimer" (even if it has no value whatsoever) to *all* e-mail is consistent, adding it to some is not. The HOWTO says

(..) The resulting system will automatically add disclaimers to outgoing emails.
. So if you want to *not* add it to replies you'll have to muck with the /etc/postfix/disclaimer script. Add the lines


from_address=`grep -m 1 "From:" in.$$ | cut -d "<" -f 2 | cut -d ">" -f 1`
grep -q -m 1 "^Subject:.*Re:" in.$$ 2>/dev/null; subject_match_re=$?

if [ $subject_match_re -eq 1 ]; then

 if [ `grep -wi ^${from_address}$ ${DISCLAIMER_ADDRESSES}` ]; then

and test if it works. If it works you must send your changes to the HOWTO author or add them as a comment to the HOWTO.

caheotrang 06-16-2008 08:49 PM

To unSpawn
It works, but disclaimer changed
for example:
disclaimer is
after reply

pls help me to fix

unSpawn 06-17-2008 04:06 AM


Originally Posted by caheotrang (Post 3186843)
It works, but disclaimer changed

Isn't that just the reply indentation? How did you inspect this? By reading the message as text with say 'less' or in your mailclient?

caheotrang 06-17-2008 08:41 AM

it is indentation as below after reply

the body text after reply (in recipient's mailbox)

This email is intended only for the use of the individual address or
organisation to whom it is addressed and may contain information that is

privileged and confidential. If you, the reader of this email, are not
intended recipient, you must not disseminate, distribute or copy this
If you have received this email in error, please immediately notify us
phone at +123456 or by return email to .
Thank you for your cooperation.
ABC is not liable if an e-mail or attachment is altered without its

By reading the message as text with say 'less' or in your mailclient?
I dont know what u mean

unSpawn 06-17-2008 09:03 AM

About all e-mail clients render messages according to rules. For instance they indent anything that starts with a (sometimes configurable) "reply" marker. E-mail is basically plain text. So unless your mailclient has an option to show messages without formatting, then saving a message to disk with full headers (or extracting it from the mailbox or file) and using vi, pico, nano, less, more or most to display that message shows what it will *really* look like.

All times are GMT -5. The time now is 12:32 AM.