Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
* [sup-devel] [Heliotrope/Turnsole] RMail's parsing leads to SystemStackError
@ 2012-03-12 18:24 Michael Stapelberg
  2012-03-23 19:17 ` Matthieu Rakotojaona
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Stapelberg @ 2012-03-12 18:24 UTC (permalink / raw)
  To: sup-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-23 19:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-12 18:24 [sup-devel] [Heliotrope/Turnsole] RMail's parsing leads to SystemStackError Michael Stapelberg
2012-03-23 19:17 ` Matthieu Rakotojaona

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox