|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Wietse Venema (wietse
porcupine.org)
Date: Fri Feb 01 2008 - 10:00:45 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
scott.postfix
scottrix.co.uk:
> >Local text MUST be in UNIX text format. Postfix will convert between
> >network formats and local formats.
>
> Are you saying that a DOS text file on Linux is actually a "binary" file
> and should not have a text/plain mime type ?
Different operating systems represent end-of-line conventions in
different ways.
1) UNIX stores the end-of-line as a LF character.
2) DOS stores the end-of-line as a CRLF pair.
3) Other systems don't store the end-of-line at all, instead
they store a record length, or worse, they assume all records
have the same fixed length, and the length is a global attribute
for the entire file.
If you want to send the TEXT in a DOS file from a UNIX box, convert
the file to UNIX format before passing it to the mail system.
If you want to send a DOS textfile in DOS textfile format,
use binary MIME type and base64 encoding.
Wietse
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]