* [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
* Re: [sup-devel] [Heliotrope/Turnsole] RMail's parsing leads to SystemStackError
2012-03-12 18:24 [sup-devel] [Heliotrope/Turnsole] RMail's parsing leads to SystemStackError Michael Stapelberg
@ 2012-03-23 19:17 ` Matthieu Rakotojaona
0 siblings, 0 replies; 2+ messages in thread
From: Matthieu Rakotojaona @ 2012-03-23 19:17 UTC (permalink / raw)
To: Sup developer discussion
On Mon, Mar 12, 2012 at 7:24 PM, Michael Stapelberg
<michael+sup@stapelberg.de> wrote:
> As far as I understand, RMail is unmaintained.
> And we wanted to switch away from it. Should we monkey-patch?
>
> Best regards,
> Michael
A little old, but I started moving message.rb from RMail to Mail gem
(https://github.com/mikel/mail). My tree is at
https://github.com/rakoo/heliotrope/tree/mail_gem
Unfortunately I don't have a lot of messages to test all the features,
especially MIME-related ones. I'd also love to have a test suite, so
maybe it could be time to gather some example messages with tricky
traps ?
--
Matthieu RAKOTOJAONA
_______________________________________________
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