
Raja Sekhar - 2012-03-08 17:08:46
Hi,
When I am using the parser on emails where the subject is very long, I am facing issues as the white spaces near the line breaks are getting stripped off.
One can easily test this by just sending a mail with very long subject from a email client and then save that email into a file and run the parser on it.
Where ever there are line breaks in the subject (the long subject would automatically be converted into multiple lines somewhere along the email transmission) the spaces between the words are getting removed.
For example
"Testing really really long subjects we really do not know when and where this subject line will break or it might just not break beause we are trying to test this piece now which is also called as murphys law which keeps into play when ever you are trying to do something cool"
is getting converted to
"Testing really really long subjects we really do not know when andwhere this subject line will break or it might just not break beause we aretrying to test this piece now which is also called as murphys law which keepsinto play when ever you are trying to do something cool"
You can see that at position #67, 144, 221 - the space is missing.
I tried fixing the code at line 655 but adding the line
$value .= $character
but this is introducing whitespaces unnecessarily in the subjects.
May be I am not understanding the parser code well to fix this issue.
Any help would be appreciated.