Bugs: Browse | Submit New | Admin

[#23042] Does not separate correctly header and body

Date:
2008-11-29 14:00
Priority:
3
Submitted By:
Nobody
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Does not separate correctly header and body

Detailed description
The library is not able to correctly separate header and body in some cases. I am attaching a sample message.

It could be that the expression used to find the separation is greedy. I have verified that the following regular expressions
works correctly:

    /^(.+?)\r?\n[\s\t]*\r?\n/m

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-12-01 04:58
Sender: Matt Armstrong

Hi, I'm afraid I don't know what regexp your are talking about
above.  Can you provide more details?  I notice you have \r?
in your regexp -- the library doesn't deal well with \r\n sequences
in input.  It is better to do \r\n -> \n conversions before
giving a message string (or file) to a RubyMail parser.

Attached Files:

Name Description Download
1997-02-18 16.17.05 - Hola, hola.eml Download

Changes:

Field Old Value Date By
File Added4192: 1997-02-18 16.17.05 - Hola, hola.eml2008-11-29 14:00None