Rt-shredder issues

Since upgrading to 3.8.10 I’ve been having a problem with rt-shredder.
It claims “Tickets” plugin doesn’t exist but when you run help for it it
shows it in the list.

…/sbin/rt-shredder --plugin help-Tickets Couldn’t find
plugin 'Tickets’
Plugins list:
Objects
Users
Attachments
Summary
Tickets
SQLDump
This is the full command I normally run:

…/sbin/rt-shredder --force --plugin ‘Tickets=query,Status=“deleted” AND
LastUpdated < “14 days ago”;limit,1000000’

when I run list is shows this:

…/sbin/rt-shredder --plugin list
Plugins list:
Objects
Users
Attachments
Summary
Tickets
SQLDump

Which seems odd because “Tickets” does infact exist. Any thoughts?

Mike Wilson

Don’t know if you have already found the solution.
The problem is in the file Plugin.pm:

— Plugin.pm.orig 2011-07-11 10:40:30.000000000 +0200
+++ Plugin.pm 2011-07-11 10:25:23.000000000 +0200
@@ -129,7 +129,7 @@

 my %res;
 for my $f (reverse @files) {
  •    $res{$1} = $_ if $f =~ /([^\\\/]+)\.pm$/;
    
  •    $res{$1} = $f if $f =~ /([^\\\/]+)\.pm$/;
    

    }

    return %res unless $type;

Regards

Vladimir Nikolic | Sistemski administrator / System Administrator

Amis | Trzaska cesta 85 | 2000 Maribor | Slovenija
Tel: +386 080 20 10 | Faks: +386 2 620 6 333 | www.amis.net
http://www.amis.net

Don’t know if you have already found the solution.
The problem is in the file Plugin.pm:

A patch to fix this is on 3.8-trunk
5add26c8d76d8a25626ba02ebafe0734fb34619f

-kevin