Tugger the SLUGger!SLUG Mailing List Archives

Re: [chat] x headers in emails


quoth Ken Foskey:

> I am building an email header in for send mail by script, (and it is
> working) sent via sendmail -t.
> 
> What is the deal with the additional headers, if I want to add a tag to
> say my application sent it so that it can be filtered on the other side
> how do I do that.

'sendmail -t' just reads the recipients from the headers, and you can
add whatever headers you like:

/usr/lib/sendmail -t <<EOF
To: <avdd>
From: <avdd>
Subject: see the headers!
X-XXX-XXXX: hot stuff

Poo

EOF

a.

-- 
Cantanker /
---------/-------------
        / cantanker.net