Re: BUG: More on C-header text files - CORRECTION
Re: BUG: More on C-header text files - CORRECTION
- Subject: Re: BUG: More on C-header text files - CORRECTION
- From: John W Baxter <email@hidden>
- Date: Sun, 30 Jun 2002 15:18:42 -0700
At 8:47 -0700 6/22/2002, Paul Berkowitz wrote:
>
I went back to the two emails I was sent by a user: one where the CSV file
>
attachment was unstuffed, coming through my mac.com email address, the other
>
the same file sent by the user, but stuffed (came via silcom).
>
>
The first file I was sent by the user, not stuffed, has CR line endings.
>
>
The second file (stuffed), when unstuffed, has CRLFs. Duplicating it did NOT
>
strip the strip the LFs.
Email passes over the Internet in wire* format, with a particular line
ending (see RFC 2822) which says in part of 2.1
Messages are divided into lines of characters. A line is a series of
characters that is delimited with the two characters carriage-return
and line-feed; that is, the carriage return (CR) character (ASCII
value 13) followed immediately by the line feed (LF) character (ASCII
value 10). (The carriage-return/line-feed pair is usually written in
this document as "CRLF".)
(One of many places you can get this RFC:
<
http://www.faqs.org/rfcs/rfc2822.html>)
The Mail User Agent doing the sending gets the message into that format;
the Mail User Agent doing the receiving puts it into the receiving
machine's format. Eudora, Outlook Express, Mailsmith, etc are Mail User
Agents.
This includes attachments, which are (unless plain ASCII text, and
sometimes even then) encoded into such lines. The failed, unstuffed,
attachment clearly wasn't encoded by the sending program.
This is very much like ASCII mode FTP. And both procedures go back many
years (long enough that the CRLF comes from the way teletypes worked [the
LF was after the CR to give the mechanical actions time...there were NULs
after the LF, but the LF took up one time slot]).
--John
*"wire" even though it's mostly glass now.
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.