From 55ff8f0893e1a1d57463861e0599717744f490bf Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 1 May 2014 18:33:18 +0000 Subject: 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.. --- lib/PublicInbox/Thread.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox/Thread.pm') 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; -- cgit v1.2.3-24-ge0c7