Format of text-attachment from linux to outlook

G

grz01

Hi,

I have a problem with mailing a text-file as an attachment from linux
email-client (nail ... -a filename ...), to a recipient reading mail
with Outlook via an Exchange server.

The text-format of the attachment sent, is unix (LF) but when the
email arrives to the receiver, the attachment has been converted to
windows-format (CR+LF)

I would not expect this to happen when it is sent as attachment.
Even if I try to fool the system by renaming the text-attachment
to .jpg before sending, it is still converted to CR+LF.

Anyone knows where this conversion takes place, and if it can be
disabled?

TIA,
-------------------------------------- grz01
 
J

John Wingate

I have a problem with mailing a text-file as an attachment from linux
email-client (nail ... -a filename ...), to a recipient reading mail
with Outlook via an Exchange server.

The text-format of the attachment sent, is unix (LF) but when the
email arrives to the receiver, the attachment has been converted to
windows-format (CR+LF)

All lines of text in mail messages transmitted over the Internet are
required to have line breaks indicated by CR+LF, since forever (i.e.,
thirty years or more ago). Outgoing messages are changed to this
format and incoming messages are changed to the local format for
storage if the local convention is different (such as with unix, but
not with windows).
Even if I try to fool the system by renaming the text-attachment
to .jpg before sending, it is still converted to CR+LF.

On your linux system, text files are recognized by looking at them, not
by their names.
Anyone knows where this conversion takes place, and if it can be
disabled?

I would suspect your local MTA (sendmail, postfix, ...) in client mode,
acting as it should, or possibly nail.

To avoid the conversion, attach a non-text version of the file: compress
or encrypt it, or encode it in MIME base64.

(I don't know why you would want a unix-convention text file on a windows
system; usually people want them converted.)
 
R

Robert Heller

All lines of text in mail messages transmitted over the Internet are
required to have line breaks indicated by CR+LF, since forever (i.e.,
thirty years or more ago). Outgoing messages are changed to this
format and incoming messages are changed to the local format for
storage if the local convention is different (such as with unix, but
not with windows).


On your linux system, text files are recognized by looking at them, not
by their names.


I would suspect your local MTA (sendmail, postfix, ...) in client mode,
acting as it should, or possibly nail.

To avoid the conversion, attach a non-text version of the file: compress
or encrypt it, or encode it in MIME base64.

(I don't know why you would want a unix-convention text file on a windows
system; usually people want them converted.)

Unless the file is meant to land on a UNIX system eventually. In which
case it probably makes sense to bundle it up somehow -- if it is a
single file, then gzip, otherwise tar+gzip.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top