When the text from the NoteText property is displayed in a memo control, the text seems to format inappropriately. How is text formatted?
The text is placed into a TStringList so each line cannot be larger than 255 characters (due to Delphi 1.0 limitation). The text is therefore formatted so that CRLF breaks a line. If there are no CRLF breaks within a 255 character segment, then the line is broken at the last space. If there isn’t a space, then the line is arbitrarily broken at 255 characters. Depending on the width of your memo control this may be a good or bad number (255 characters). If you need additional control, the following code will give you an example of one way to proceed. Remember that the Msg^.NoteText points to the null terminated string after the ReadMail and before the FreeMsgMem call.