mikel/tmail — Issue #12: wrong behaviour with last boundary in TMail::Mail#read_multipart
Author: erroric
Created: 2011-12-13 18:06:49+00:00
State: open

Hi,
i've found issue with the multipart messages and its last boundary.
Some mail generators loose CR LF after the last boundary, and TMail does accept it as a part of content.

Problem is in a is_sep Regexp, there is an example of correct one:

/\A--#{Regexp.quote bound}(?:--[ \t]*(?:\n|\r\n|\r|\z)|[ \t]*(?:\n|\r\n|\r))/