Carriage return and line feed

I am suffering a quite strange problem.

I have a non-windows based system (IBM) sending mails to my Domino server. The message is sent first to a middleware platform and this platform connects via SMTP to Notes.

When the connection is made to a version 5 server, the mail is shown correctly and the lines end with CR and LF (13-10). They can be treated by an agent…

However, when we use the SMTP service in one of our Domino 6.5.2. servers, the lines end in LF only (10) and we can find CR and LF in the middle of a single line (so it seems that CR LF together don’t mean end of line). If you edit the message and save it, everything is ok again (CRLF in the middle of a line vanishes and LF turns into CR LF in line end).

You must bear in mind that these problems are only with the codification… the message is shown ok in the client.

Does anyone know what can be going on?

Thanks.