Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Users

Autogen password autoreply template

 

 

Request Tracker users RSS feed   Index | Next | Previous | View Threaded


jrowling at lineone

Feb 12, 2004, 10:07 PM

Post #1 of 4 (2731 views)
Permalink
Autogen password autoreply template

Hi all,

I started using RT a couple of days ago and it has so far proved to be an
excellent and easy system to use. I saw the autogen template posted by
Jesse
and decided to use it but I'm seeing a strange effect. Occasionally a user
will see not only their own userid and password in the autoreply email, but
also the userid and password of the user who opened a ticket just before
them, if that user also triggered the autogen part of the template.

Is this a known problem, and is there any way to prevent it happening?

Thanks...

John Rowling
_______________________________________________
rt-users mailing list
rt-users [at] lists
http://lists.bestpractical.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm


jesse at bestpractical

Feb 12, 2004, 10:12 PM

Post #2 of 4 (2676 views)
Permalink
Re: Autogen password autoreply template [In reply to]

> them, if that user also triggered the autogen part of the template.
>
> Is this a known problem, and is there any way to prevent it happening?

It's not a known problem. Can you send us the template you're using?

>
> Thanks...
>
> John Rowling
> _______________________________________________
> rt-users mailing list
> rt-users [at] lists
> http://lists.bestpractical.com/mailman/listinfo/rt-users
>
> Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
>

--
http://www.bestpractical.com/rt -- Trouble Ticketing. Free.
_______________________________________________
rt-users mailing list
rt-users [at] lists
http://lists.bestpractical.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm


jrowling at lineone

Feb 12, 2004, 10:30 PM

Post #3 of 4 (2692 views)
Permalink
Re: Autogen password autoreply template [In reply to]

Hi Jesse,

That was a mighty quick response ;-) The full template is included
below - it's pretty much the same as the one you posted apart from some
minor text changes. There may be a syntax error in there; the version I
saw in the maillist had some bad character translation in it. I've tried
it both global and queue-specific.

Thanks

JR


<-- cut here -->
Subject: AutoReply: {$Ticket->Subject}


Greetings,

This message has been automatically generated in response to the
creation of a helpdesk call:
"{$Ticket->Subject()}",
a summary of which appears below.

There is no need to reply to this message right now. Your ticket has been
assigned an ID of [{$rtname} #{$Ticket->id()}]. Please include this string
in the subject line of all future correspondence about this issue.

{
*RT::User::GenerateRandomNextChar = \&RT::User::_GenerateRandomNextChar;


if (($Transaction->CreatorObj->id != $RT::Nobody->id) &&
(!$Transaction->CreatorObj->Privileged) &&
($Transaction->CreatorObj->__Value('Password') eq '*NO-PASSWORD*')
) {

my $user = RT::User->new($RT::SystemUser);
$user->Load($Transaction->CreatorObj->Id);
my ($stat, $pass) = $user->SetRandomPassword();

if (!$stat) {
$OUT .=
"An internal error has occurred. RT was not able to set a password for you.
Please contact your local RT administrator for assistance.";

}

$out .= "
You can check the current status and history of your requests at:

".$RT::WebURL."

When prompted, enter the following username and password:

Username: ".$user->Name."
Password: ".$pass."
";
}
}

Thank you.
{$Ticket->QueueObj->CorrespondAddress()}

-------------------------------------------------------------------------
{$Transaction->Content()}
<-- cut here -->
_______________________________________________
rt-users mailing list
rt-users [at] lists
http://lists.bestpractical.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm


jesse at bestpractical

Feb 12, 2004, 10:45 PM

Post #4 of 4 (2675 views)
Permalink
Re: Autogen password autoreply template [In reply to]

The $out there should be an $OUT, I believe

_______________________________________________
rt-users mailing list
rt-users [at] lists
http://lists.bestpractical.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Request Tracker users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.