Re: [rt-users] RTx-Shredder Error

2007-02-21 Thread Ruslan Zakirov

You can delete all these links as they point to tickets that don't
exist anymore. This was a bug in shredder which leaved links in system
in some situations and I think it's fixed.

Be very accurate.

On 2/21/07, Torsten Brumm [EMAIL PROTECTED] wrote:

Hi Ruslan,

sorry, i forgot, sometimes its too much to remember ;-9

Here we go with the statements:

mysql SELECT l.* FROM Links l LEFT JOIN Tickets t ON l.LocalTarget = t.id
- WHERE l.LocalTarget = 0 AND t.id IS NULL;


[snip]

--
Best regards, Ruslan.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] RTx-Shredder Error

2007-02-21 Thread Torsten Brumm

So, how do i delete them? Directly inside the DB or???

Torsten

2007/2/21, Ruslan Zakirov [EMAIL PROTECTED]:


You can delete all these links as they point to tickets that don't
exist anymore. This was a bug in shredder which leaved links in system
in some situations and I think it's fixed.

Be very accurate.

On 2/21/07, Torsten Brumm [EMAIL PROTECTED] wrote:
 Hi Ruslan,

 sorry, i forgot, sometimes its too much to remember ;-9

 Here we go with the statements:

 mysql SELECT l.* FROM Links l LEFT JOIN Tickets t ON l.LocalTarget =
t.id
 - WHERE l.LocalTarget = 0 AND t.id IS NULL;

[snip]

--
Best regards, Ruslan.





--
MFG

Torsten Brumm

http://www.torsten-brumm.de
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

[rt-users] Further RTx::Shredder Errors

2007-02-21 Thread Mathew Snyder
From this

RTx::Shredder::Init( force = 1 );
my $shredder = new RTx::Shredder(RT::SystemUser);
if ($ans =~ m/^(y|yes)$/i){
#   my ($fname, $fh) = $shredder-SetFile( FromStorage = 0, FileName =
’/usr/local/rt-3.6.1/var/data/RTx-Shredder/Shredder-Users_.sql’ );
my $email;
foreach $email (@emails){
my $user = new RT::User(RT::SystemUser);
$user-LoadByEmail($email);
next unless $user-id;
$shredder-PutObject(Object = $user);
}
$shredder-WipeoutAll;
#   system /usr/local/rt-3.6.1/local/sbin/rtx-shredder --force
--plugin 'Users=status,any;email,$email;replace_relations,Nobody';
#
system(/usr/local/rt-3.6.1/local/sbin/rtx-shredder,--force,--plugin,Users=status,any;email,$email;replace_relations,Nobody);
}

I get this

[Wed Feb 21 08:44:20 2007] [crit]: Couldn't wipeout object: Couldn't find
resolver for dependency 'RT::User-240410 (depends on,resolvable dependency)
RT::Attachment-270285' at /usr/local/rt-3.6.1/local/lib/RTx/Shredder.pm line
393. (/usr/local/rt-3.6.1/lib/RT.pm:317)
Couldn't wipeout object: Couldn't find resolver for dependency 'RT::User-240410
(depends on,resolvable dependency) RT::Attachment-270285' at
/usr/local/rt-3.6.1/local/lib/RTx/Shredder.pm line 393.

Can someone shed some light on why this is failing?

Also, the above, commented-out line regarding SetFile produces this

Unrecognized character \xE2 at ./delete_spam_users.pl line 91

I don't know what the \xE2 is as I couldn't find anything on Google about it.

Mathew
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] Promlem with OnChangeQueue and Attachements

2007-02-21 Thread Валерий Харьков

Hi, all.

So, i've got new ticket with some text and attached file.


When i move it from one queue to another, and RT notifying me with template:

.
.
.

{$Ticket-Transactions-First-Content()}

I'am recieving a letter with text part only. Yes, it's okay, because of 
template. :)

But. How can i write a template or a scrip to get mail with attached file.

PS When my template was:

.
.
.


{$Transaction-Content()}

I got a : This transaction appears to have no content.

Yes, i am understand that transaction (when you moving ticket between 
queues) has no content.

But i can't solve this problem :(

Thank you.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Promlem with OnChangeQueue and Attachements

2007-02-21 Thread Ruslan Zakirov

http://wiki.bestpractical.com/?Template
Grep text for 'attach'.

On 2/21/07, Валерий Харьков [EMAIL PROTECTED] wrote:

Hi, all.

So, i've got new ticket with some text and attached file.


When i move it from one queue to another, and RT notifying me with template:

.
.
.

{$Ticket-Transactions-First-Content()}

I'am recieving a letter with text part only. Yes, it's okay, because of
template. :)
But. How can i write a template or a scrip to get mail with attached file.

PS When my template was:

.
.
.


{$Transaction-Content()}

I got a : This transaction appears to have no content.

Yes, i am understand that transaction (when you moving ticket between
queues) has no content.
But i can't solve this problem :(

Thank you.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com




--
Best regards, Ruslan.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Problem installing HTML::TreeBuilder and HTML::FormatText

2007-02-21 Thread Kevin Falcone


On Feb 20, 2007, at 4:47 PM, Mike Friedman wrote:

I'm still trying to install the perl pre-reqs for RT 3.6.3 on  
Solaris 10 (see below).  In addition to the two modules  
HTML::TreeBuilder and HTML::FormatText refusing to install, now I  
notice this when I run 'make fixdeps':


  Text::Quoted 1.3...MISSING
Text::Quoted version 1.3 required--this is only version 1.10 at  
(eval 71) line 2.


You can safely ignore this, it is just a versioning snafu (internally  
perl is seeing 1.10 as 1.1) and we'll release a new Text::Quoted to  
fix this.


-kevin
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


[rt-users] Canned Responses

2007-02-21 Thread Dalal, Kamber Z (Kamber)
In RT Wiki,  Steve Turner has posted, Apr. 6th, 2006, code for canned
responses in two Callback files.
 
I am new to RT and need assistance for the following:
 
What is meant by:
 
.../local/html/Callbacks/whatever/Ticket/
 
for I do not see the Callbacks folder in ver. 3.6.3.  Do I just create
it, and whatever stands for any name of my choosing?
Would this be global, or can it be queue specific and how?
Will it use canned response templates already set-up, global and/or
queue specific?  Or need to create new template files in specific
directory?
 
Thank you,
Kamber Dalal
 
 
 
 
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

[rt-users] Canned Responses

2007-02-21 Thread Dalal, Kamber Z (Kamber)
In RT Wiki,  Steve Turner has posted, Apr. 6th, 2006, code for canned
responses in two Callback files.
 
I am new to RT and need assistance for the following:
 
What is meant by:
 
.../local/html/Callbacks/whatever/Ticket/
 
for I do not see the Callbacks folder in ver. 3.6.3.  Do I just create
it, and whatever stands for any name of my choosing?
Would this be global, or can it be queue specific and how?
Will it use canned response templates already set-up, global and/or
queue specific?  Or need to create new template files in specific
directory?
 
Thank you,
Kamber Dalal
 
 
 
 
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] Canned Responses

2007-02-21 Thread Stephen Turner

At Wednesday 2/21/2007 11:55 AM, Dalal, Kamber Z (Kamber) wrote:
In RT Wiki,  Steve Turner has posted, Apr. 6th, 2006, code for 
canned responses in two Callback files.


I am new to RT and need assistance for the following:

What is meant by:

.../local/html/Callbacks/whatever/Ticket/

for I do not see the Callbacks folder in ver. 3.6.3.  Do I just 
create it, and whatever stands for any name of my choosing?

Would this be global, or can it be queue specific and how?
Will it use canned response templates already set-up, global and/or 
queue specific?  Or need to create new template files in specific directory?


Thank you,
Kamber Dalal



Hello Kamber,

Yes, you are correct - you should create the directory yourself, and 
whatever can be any name you like. Make sure the directories  
files you create are readable by the web server.


The code in the wiki will show any queue-specific templates you have 
already set up (for the ticket's queue)


Thanks,
Steve  


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Problem installing HTML::TreeBuilder and HTML::FormatText

2007-02-21 Thread Mike Friedman

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 21 Feb 2007 at 11:43 (-0500), Kevin Falcone wrote:


On Feb 20, 2007, at 4:47 PM, Mike Friedman wrote:

I'm still trying to install the perl pre-reqs for RT 3.6.3 on Solaris 
10 (see below).  In addition to the two modules HTML::TreeBuilder and 
HTML::FormatText refusing to install, now I notice this when I run 
'make fixdeps':


 Text::Quoted 1.3...MISSING
   Text::Quoted version 1.3 required--this is only version 1.10 at (eval 
71) line 2.


You can safely ignore this, it is just a versioning snafu (internally 
perl is seeing 1.10 as 1.1) and we'll release a new Text::Quoted to fix 
this.


Kevin,

Thanks.  I should apologize for raising that, since I see it was dealt 
with in a posting just a couple of days ago.


However, my subject line is more to the point.  I can't seem to get the 
two modules HTML::TreeBuilder and HTML::FormatText to install because of 
what appears to be a Unicode-related problem.  At least that seems to be 
the case based on this error message (lines wrapped by me for readability):


===
  Running make test
  PERL_DL_NONLAZY=1 /opt/csw/bin/perl -MExtUtils::Command::MM
 -e test_harness(0, 'blib/lib', 'blib/arch') t/*.t
  t/00system..  t/00system..ok 1/2   t/00system..ok
  t/assubs  t/assubsok 1/74  t/assubsok
  t/attributes
  Wide character in print at /opt/csw/share/perl/5.8.8/Test/Builder.pm line 
1182.

  Wide character in print at /opt/csw/share/perl/5.8.8/Test/Builder.pm line 
1199.
  #   Failed test 'href should contain 'lang' (is: 
http://wherever/moo.cgi?xyz=123\342\214\251=en)'
  #   in t/attributes.t at line 25.
===

I get the same message for both modules.

Is there any way around this?

Thanks.

Mike

_
Mike FriedmanIST/System and Network Security
[EMAIL PROTECTED]   2484 Shattuck Avenue
1-510-642-1410   University of California at Berkeley
http://socrates.berkeley.edu/~mikef  http://security.berkeley.edu
_

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8

iQA/AwUBRdyBfa0bf1iNr4mCEQJYzACfUgrDCHuCQPZmU+klTNCd3f/jSosAn1rY
sdyxydH04eSloB8AXCqgDw5Q
=b4W+
-END PGP SIGNATURE-
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Bug... maybe

2007-02-21 Thread Ruslan Zakirov

Thanks, fixed in 3.6.HEAD.

On 2/1/07, Scott T. Hildreth [EMAIL PROTECTED] wrote:

This is was occurring on 3.6.0  3.6.3.

A user created a queue 'Foo  Bar'.  When RT at a glance page
came up, you can see the queue in the Quick Search box.  If it is
clicked none of the tickets would show up, but if a search is done
with Queue is Foo  Bar the tickets would be displayed.  I finally
figured out it was the '' causing the problem.  I renamed the queue
and all is well.  Is the '' causing html problems?  Should there be
a constraint on queue names that doesn't allow certain characters?

Thanks.

--
Scott T. Hildreth [EMAIL PROTECTED]
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com




--
Best regards, Ruslan.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Error in outgoing email record

2007-02-21 Thread Ruslan Zakirov

Try 3.6.3

On 1/24/07, Taan Lindemans [EMAIL PROTECTED] wrote:

A small issue:

A html format email with an attachment is sent to rt (3.6.0).
The message and attachment appear in the ticket.
The correct email with attachment is sent to the requestor.
However the log of this email in the ticket contains This transaction
appears to have no content.

Currently I am doing some extra mail filtering to catch outgoing emails
so I can verify they are correct, but it would be nice to rely on the rt
log. It would also be nice if nobody ever sent html emails, but I live
in the real world.

I think somebody else noticed a similar thing before.

Taan
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com




--
Best regards, Ruslan.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Error: Use of uninitialized value in subroutine entry at Encode.pm line 190.

2007-02-21 Thread Ruslan Zakirov

Have you tried update of Encode perl module?

On 1/5/07, Alex Moura [EMAIL PROTECTED] wrote:

Hello,

I haven't found information in the Internet and list history about this
problem and I've decided to ask for your advice.

After a recent upgrade in perl (from 5.8.7 to 5.8.8) and all RT perl
components of our FreeBSD-6.1 server, we've detected a problem
where the web interface cannot show a specific ticket history and we
haven't noticed this problem before.

When we try to access the ticket with the problem, the messages
recorded in the apache log are:

[Fri Jan  5 09:10:14 2007] [error] [client 200.143.193.21] FastCGI:
server /usr/local/rt3/bin/mason_handler.fcgi stderr: Use
of uninitialized
value in subroutine entry at
/usr/local/lib/perl5/site_perl/5.8.8/mach/Encode.pm line
190.

[Fri Jan  5 09:10:25 2007] [warn] FastCGI: server
/usr/local/rt3/bin/mason_handler.fcgi (pid 1871)
terminated due
to uncaught signal '11' (Segmentation fault)

And the effect in the web interface is that the ticket history is shown
incomplete. It shows a few messages of the ticket history and stops
in the middle of a specific message and doesn't display the rest of
the history.

To try to solve this problem, today I upgraded RT from
3.4.4 to 3.4.5 using the FreeBSD ports, and forced the
reinstallation of the whole set of required software
components, including apache and mysql. The error
meesages above are still the same after this complete
upgrade.

It seems that the problem appeared after upgrading - in the
beginning of this week - perl from v.5.8.7 to v.5.8.8, more
specifically in the file
/usr/local/lib/perl5/site_perl/5.8.8/mach/Encode.pm.

We would like at least a workaround to recover the ticket
history content, so we can move on with our work.

We wouldn't bother in opening a new ticket and deleting
the problematic one after we recover the data we need.

I'd appreciate any tips.

Best regards,

Alex

___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com




--
Best regards, Ruslan.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


RE: [rt-users] Promlem with OnChangeQueue and Attachements

2007-02-21 Thread Helmuth Ramirez
Well, if the ticket is being moved to another queue, then another group is 
getting the 'new' ticket.  Its not HORRIBLE to log into RT and check the 
attachment, but it would be nice to be able to open the attachment and reply to 
the ticket all via your e-mail client.

My 2cents

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Crocker
Sent: Wednesday, February 21, 2007 3:20 PM
To: Валерий Харьков
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Promlem with OnChangeQueue and Attachements

Валерий,


Why in the world would you want to copy/send out tons of attachments 
when they are already stored? Isn't an E_mail referencing the change 
enough? That's just way too much info flying around for me. Once is 
enough. After that, let 'em look it up. Just curious.

Kenn
LBNL

Валерий Харьков wrote:
 Hi, all.
 
 So, i've got new ticket with some text and attached file.
 
 
 When i move it from one queue to another, and RT notifying me with 
 template:
 
 .
 .
 .
 
 {$Ticket-Transactions-First-Content()}
 
 I'am recieving a letter with text part only. Yes, it's okay, because of 
 template. :)
 But. How can i write a template or a scrip to get mail with attached file.
 
 PS When my template was:
 
 .
 .
 .
 
 
 {$Transaction-Content()}
 
 I got a : This transaction appears to have no content.
 
 Yes, i am understand that transaction (when you moving ticket between 
 queues) has no content.
 But i can't solve this problem :(
 
 Thank you.
 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
 
 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]
 
 
 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy 
 a copy at http://rtbook.bestpractical.com
 
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Having intial Requesters additions included in ticket history

2007-02-21 Thread Roy El-Hames

Hi Ruslan;
Understand and agree with you in principal, however a Tech supp manager 
would like to know who/when added the wrong requester, saying trust me 
these requesters were added when the ticket was created ... does n't 
work any more..
I am just wondering if anyone have a suggestion or a work around .. 
Thanks for you reply.

Roy

Ruslan Zakirov wrote:

On 2/19/07, Roy El-Hames [EMAIL PROTECTED] wrote:

Hi there;
rt-3.6.1 apache2, mod_perl2, mysql5

When a ticket is created from the web interface,an agent in most cases
will enter a customer email address as requester, is there any way that
this action is added/included in the ticket history, similar to how
adding a requester from the People tab is recorded (user - Requester
Blah added) ..
I know I need to call
Transaction-AddWatcher,
but how and from where ??

Why do you need another transaction? In the most cases I heard about
people want to merge all changes during creation into one transaction.



Many thanks;
Roy




___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] remove summary from 'RT at a glance'

2007-02-21 Thread Dave Alden
Hi,

On Wed, Feb 21, 2007 at 04:32:34AM +0300, Ruslan Zakirov wrote:
 Backporting was easy so it's coming in 3.6.4.

Thank you, thank you, thank you.  :-)

...dave



 On 1/23/07, Dave Alden [EMAIL PROTECTED] wrote:
 Hi,
 
 On Tue, Jan 23, 2007 at 08:25:33AM +0100, Torsten Brumm wrote:
  do you have a screenshot of what you mean??? Should it look like this??? 
 See
  attached Screen.
 
 No - I want the main screen (the left 2/3rds of your screen) to take up the
 entire screen (I don't have anything on the right 1/3rd because I deleted
 it all from the RT at a glance preference page).  Ruslan Zakirov has 
 already
 responded with this is in 3.7 - so it's coming.  :-)
 
 ...dave
 
 --
 Dave Alden
 The Ohio State University
 Department of Mathematics
 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
 
 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]
 
 
 Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
 Buy a copy at http://rtbook.bestpractical.com
 
 
 
 -- 
 Best regards, Ruslan.

-- 
Dave Alden
The Ohio State University
Department of Mathematics
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] Further RTx::Shredder Errors

2007-02-21 Thread Mathew Snyder
I'm looking through the code for Shredder.pm trying to figure this out.  I see a
PutResolver method as well as ApplyResolver method.  However, I'm coming up
short on how to tell it what to use as the dependency resolver.  Using the CLI I
would run
rtx-shredder --force --plugin
'Users=status,any;email,address;replace_relations,Nobody'

How do I fit this in using the API?

Mathew


Mathew Snyder wrote:
From this
 
 RTx::Shredder::Init( force = 1 );
 my $shredder = new RTx::Shredder(RT::SystemUser);
 if ($ans =~ m/^(y|yes)$/i){
 #   my ($fname, $fh) = $shredder-SetFile( FromStorage = 0, FileName =
 ’/usr/local/rt-3.6.1/var/data/RTx-Shredder/Shredder-Users_.sql’ );
 my $email;
 foreach $email (@emails){
 my $user = new RT::User(RT::SystemUser);
 $user-LoadByEmail($email);
 next unless $user-id;
 $shredder-PutObject(Object = $user);
 }
 $shredder-WipeoutAll;
 #   system /usr/local/rt-3.6.1/local/sbin/rtx-shredder --force
 --plugin 'Users=status,any;email,$email;replace_relations,Nobody';
 #
 system(/usr/local/rt-3.6.1/local/sbin/rtx-shredder,--force,--plugin,Users=status,any;email,$email;replace_relations,Nobody);
 }
 
 I get this
 
 [Wed Feb 21 08:44:20 2007] [crit]: Couldn't wipeout object: Couldn't find
 resolver for dependency 'RT::User-240410 (depends on,resolvable dependency)
 RT::Attachment-270285' at /usr/local/rt-3.6.1/local/lib/RTx/Shredder.pm line
 393. (/usr/local/rt-3.6.1/lib/RT.pm:317)
 Couldn't wipeout object: Couldn't find resolver for dependency 
 'RT::User-240410
 (depends on,resolvable dependency) RT::Attachment-270285' at
 /usr/local/rt-3.6.1/local/lib/RTx/Shredder.pm line 393.
 
 Can someone shed some light on why this is failing?
 
 Also, the above, commented-out line regarding SetFile produces this
 
 Unrecognized character \xE2 at ./delete_spam_users.pl line 91
 
 I don't know what the \xE2 is as I couldn't find anything on Google about it.
 
 Mathew
 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
 
 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]
 
 
 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
 Buy a copy at http://rtbook.bestpractical.com
 
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com