From: Eric Wong Date: Thu, 1 May 2014 18:33:18 +0000 (+0000) Subject: thread: limit scope of monkey patch X-Git-Tag: v1.0.0~1165 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=55ff8f0893e1a1d57463861e0599717744f490bf thread: limit scope of monkey patch Future versions of Mail::Thread may be released to fix this bug. However, since it's been about 8 years since the bug was reported.. --- diff --git a/lib/PublicInbox/Thread.pm b/lib/PublicInbox/Thread.pm index a2553da7..7dabf243 100644 --- a/lib/PublicInbox/Thread.pm +++ b/lib/PublicInbox/Thread.pm @@ -7,7 +7,10 @@ package PublicInbox::Thread; use strict; use warnings; use base qw(Mail::Thread); -sub _container_class { 'PublicInbox::Thread::Container' } + +if ($Mail::Thread::VERSION <= 2.55) { + eval q(sub _container_class { 'PublicInbox::Thread::Container' }); +} package PublicInbox::Thread::Container; use strict;