[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sup-devel] [Heliotrope/Turnsole] RMail's parsing leads to SystemStackError



Hi,

while working on the GPG signature verification, I noticed that RMail’s MIME
parsing sucks, at least with Ruby 1.9.3:

When encountering a boundary, such as "--=_libri-22937-1314886853-0001-2--",
RMail turns that into a regular expression which matches any amount of
characters or the whole thing, that looks like this:

\-(?:\-(?:=(?:_(?:l(?:i(?:b(?:r(?:i(?:\-(?:2(?:2(?:9(?:3(?:7(?:\-(?:1(?:3(?:1(?:4(?:8(?:8(?:6(?:8(?:5(?:3(?:\-(?:0(?:0(?:0(?:1(?:\-(?:2|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)|\z)

Running this regular expression leads to a SystemStackError. What is an
appropriate way to handle this? As far as I understand, RMail is unmaintained.
And we wanted to switch away from it. Should we monkey-patch?

Best regards,
Michael
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel