Joona I Palaste said:
Rene <
[email protected]> scribbled the following
Are you sure about that <CR><LF>? Not all platforms use that kind of
end-of-line marker, you know. Mine, for example, uses <LF>.
(removed java.help because I don't read it)
Imho at the time it was defined, there was no Windows around and the
message format simply said that line wraps were <CR><LF>. The NNTP
protokoll up to today still uses this as "wire protocol" which among other
things means there are some special cases to consider because
<CR><LF>.<CR><LF> means end of message and if you want to have a dot on a
line by itself, it gets duplicated. Similar things goes for Email because
both basically "inherit" this from RFC 822
It might well be that it was not as verbose as I wrote it above but the
linewrap is certainly part of the deal, ie a "-- " mid-text does not
trigger it but any<linewrap>-- <linewrap> does. This makes sense, because
otherwise you coulnd't actually talk about it, especially not if users opt
to automatically hide the signatures.
Nowadays you need to be ready for some clients not sending <CR><LF> when
you'd expect them to and also accept single \n's for some protocol. I think
the Apache Webserver accepts both. (\r\n and \n)