On Monday, November 15, 2004, at 23:09:39 [UTC+0100] (Monday, November 15, 2004 23:09 my local time) Marcus Ohlström wrote:
> If you unpack and open the attached message in Notepad, you will see it > ends with the word HOME on a separate line. If you open it in TB!, the > last line is truncated to HO. Same happens if you import it. Confirmed. > If I open it with Notepad, place the cursor at the last position, hit > enter and then save the file, I can open it or import it in to TB! > without loosing the trailing ME. Also confirmed. > This actually was how the message did look like from the beginning, it > was me removing the trailing CR/LF before importing it. Now, before I > open up a bug report, is this a bug, or are there some RFC(s) specifying > a message *should* end with CR/LF? ,------ [ Quotes from RFC2822 ] | 2. Lexical Analysis of Messages | | 2.1. General Description | | ...<snip>... | | 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".) | | A message consists of header fields (collectively called "the header | of the message") followed, optionally, by a body. The header is a | sequence of lines of characters with special syntax as defined in | this standard. The body is simply a sequence of characters that | follows the header and is separated from the header by an empty line | (i.e., a line with nothing preceding the CRLF). | | 2.1.1. Line Length Limits | | There are two limits that this standard places on the number of | characters in a line. Each line of characters MUST be no more than | 998 characters, and SHOULD be no more than 78 characters, excluding | the CRLF. `---------- In my opinion, lines of text creating message body should end with CRLF pairs. The Bat! probably takes into account each two last characters of each line and assumes that they are CRLF. However, in last line it is not true, because in this specific message it ends with 'ME'. Such strict behaviour is not needed here, because The Bat! should test the last character pair either before displaying or converting. So, this is a bug :-( -- Best regards, Zygmunt Wereszczynski (Using The Bat! v3.0.2.7 on Windows 2000 5.0 Build 2195 Service Pack 4 with BayesIt! 0.7.4) ________________________________________________________ Current beta is 3.0.2.7 Rush | 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html IMPORTANT: To register as a Beta tester, use this link first - http://www.ritlabs.com/en/partners/testers/

