[rt-devel] Re: [rt-users] RT Mail Command (rt-1.0.7 mail UI bug)

Jan Okrouhly okrouhly at civ.zcu.cz
Mon Mar 5 13:31:44 EST 2001


On Fri, 2 Mar 2001, Hermann Wecke wrote:

> I need to resolve in a batch 332 tickets using RT Mail Command.
> 
> I tried this command:
> 
> %RT USER hermann
> %RT PASS blablabla
> %RT RESOLVE 1833
> %RT RESOLVE 1836
> %RT RESOLVE 1837
> 
> 
> Then I received this reply:
> 
> > %RT USER hermann
> RT: Username hermann noticed.
> > PASS ***** RT: You are now authenticated as hermann.
> > %RT RESOLVE 1833
> RT: Batching resolve of 1833.
> > %RT RESOLVE 1836
> RT: Batching resolve of 1836.
> > %RT RESOLVE 1837
> RT: Batching resolve of 1837.
> RT: Request #1833 has been resolved. (6972)
> RT: Request #1833 has been resolved. (0)
> RT: Request #1833 has been resolved. (0)
> 

I'm not sure, but the problem seems to be at near end of sub
parse_headers (ui/mail/manipulate.pm):

  if ($#resolve_nums > -1) {
      print "RT: Resolving $#resolve_nums tickets\n" if ($debug);
      foreach $ticket (@resolve_nums) {     
          print "Resolving $ticket\n" if ($debug);
          ($trans,  $message)=&rt::resolve($resolve_nums[$count], (split(/\@/, $authenticated_user))[0]);

I think that the last line should look like:
($trans,  $message)=&rt::resolve($ticket, $authenticated_user);
                                 ^--- main problem + ^--- safe mistake

> 
> The only >>really<< resolved case was 1833. The other 2 tickets remains
> "untouched"...
> 
> Any clues?
> 
> Thanks,
> 
> Hermann
> 
> 
> 
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
> 


Jan Okrouhly
---------------------------------------\-\-\+\-\-\---okrouhly at civ.zcu.cz---
Laboratory for Computer Science             |    phone: (420 19) 7491588
University of West Bohemia                  | location: Univerzitni 22
Americka 42, 306 14 Pilsen, Czech Republic  |     room: UI404
------------------------------------------73!-de-OK1INC at OK0PPL.#BOH.CZE.EU-





More information about the Rt-devel mailing list