]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Feed.pm
workaround Mail::Thread memory leak
[public-inbox.git] / lib / PublicInbox / Feed.pm
index 6b317ab0573fb298b0882187ddd65accaed823ea..a507cda12350a7fda8bbd67a7b727b45f0f36638 100644 (file)
@@ -13,8 +13,6 @@ use constant {
        MAX_PER_PAGE => 25,
 };
 
-# FIXME: workaround https://rt.cpan.org/Public/Bug/Display.html?id=22817
-
 # main function
 sub generate {
        my ($class, $args) = @_;
@@ -50,7 +48,7 @@ sub generate {
 
 sub generate_html_index {
        my ($class, $args) = @_;
-       require Mail::Thread;
+       require PublicInbox::Thread;
 
        my $max = $args->{max} || MAX_PER_PAGE;
        my $feed_opts = get_feedopts($args);
@@ -72,7 +70,7 @@ sub generate_html_index {
        });
        $git = undef; # destroy pipes.
 
-       my $th = Mail::Thread->new(@messages);
+       my $th = PublicInbox::Thread->new(@messages);
        $th->thread;
        my $html = "<html><head><title>$title</title>" .
                '<link rel="alternate" title="Atom feed" href="' .