Dan Jacobson | 13 Oct 2004 01:40
Favicon
Gravatar

can't affect Content-Type

Help. In a batch script I am unable to affect Content-Type
etc. headers, even with:
echo {whatever}|
env MAILRC=/dev/null content-type="text/plain; charset=big5" \
content-transfer-encoding=8bit nail -n $USER

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Gunnar Ritter | 15 Oct 2004 15:16
Picon

Re: can't affect Content-Type

Dan Jacobson <jidanni@...> wrote:

> Help. In a batch script I am unable to affect Content-Type
> etc. headers, even with:
> echo {whatever}|
> env MAILRC=/dev/null content-type="text/plain; charset=big5" \
> content-transfer-encoding=8bit nail -n $USER

You cannot set arbitrary header fields using the variable mechanism.
Only use the variables which are documented in the manual page.

For this example, you do not need to set anything except 'charset'
anyway. Otherwise, see the 'MIME types' section in the manual page
and the description of the 'encoding' variable.

	Gunnar

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

Gmane