[rt-users] Where to insert the AutogeneratedPasswordtemplate text?

Marc A. Runkel marc at tiosky.net
Thu Jul 14 11:48:05 EDT 2005


Matthew, you want to modify the scrip for AutoReply, it's going to be
accessible here:

In RT's webpage after you've logged in with the appropriate account:

Configuration->Global->Templates->Autoreply

No need to monkey with the file system or restart the webserver.

M. 

-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Matt
England
Sent: Thursday, July 14, 2005 4:55 AM
To: Kanwar Ranbir Sandhu
Cc: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] Where to insert the
AutogeneratedPasswordtemplate text?

At 7/13/2005 09:52 PM, Kanwar Ranbir Sandhu wrote:
>Does that help?

Thanks very much for the reply; unfortunately, I still do not know how
to proceed with updating my RT server to change the content of the
auto-generated emails.

I understand many of the things written below (except maybe the part
about Scrips).  I get the general concept.  I understand what it's
doing.

*** I DON'T KNOW __HOW__ TO IMPLEMENT IT ***

Which file?  What procedure?  Where do I change the text and what must I
do to get my system to update once I do make the appropriate changes?

I have installed an entire, working, RT system by myself, so it's not
like I don't have some feel for this software.

For what it's worth, I updated the 'Autoreply' portion of
/usr/local/rt3/etc/initialdata (my install is in /usr/local/rt3 and not
/opt/rt3) with the template found at
http://wiki.bestpractical.com/index.cgi?AutogeneratedPassword .  I
rebooted my Apache server.  No change in outbound email content
(outbound email still has the old, default content, no new links, even
when I send from an email account that's not previously registered in
the database/system).

What file must I change, what procedure must I follow, etc?

>We have a Support queue in which we've created an auto reply template.

What *exactly* does this mean in terms of the nuts and bolts of a file
sytem, a web page, what?  What interface?  Which file?  Which URL?

Still searching...

-Matt


At 7/13/2005 09:52 PM, Kanwar Ranbir Sandhu wrote:
>On Wed, 2005-13-07 at 21:28 -0500, Matt England wrote:
> > Bottom line: I don't know the procedure for getting the 
> > autoreply-email-text to change.  I put the changes into 
> > etc/initialdata, rebooted my webserver, and still not change in my 
> > autoreply email.  :(
>
>We have a Support queue in which we've created an auto reply template.
>The template itself contains the code required to auto generate a 
>password if the user doesn't have one already, or to simply remind 
>him/her how to have it reset if the password has been forgotten.
>
>The template is based almost entirely on the one in the wiki.  Here's 
>the relevant bit from our template:
>
>{
>*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. Request 
>Tracker was not able to set a password for you.  Please phone Systems 
>Aligned Technical Support for assistance.";
>
>         }
>
>$OUT .= "You can review the current status and history of your requests
>at:
>
>         ".$RT::WebURL."
>
>Our technical support system has automatically assigned you a password.
>When prompted, enter the following user name and password at the login
>page:
>
>         User name: ".$user->Name."
>         Password : ".$pass."
>
>We recommend you change your password after you sign into the support 
>website.
>";
>       }
>else
>       {
>
>$OUT .= "If you do not remember your password for the Support website,
>you can reset it by sending an email to [        some address        ]
>with the subject, Reset Password.  Your password will be automatically 
>reset and the new one emailed to you.";
>       }
>}
>
>
>We use a basic scrip that fires when an email is sent to the Support 
>queue.  The auto reply (above) is the one that is sent out.
>
>Does that help?
>
>Regards,
>
>Ranbir
>--
>Kanwar Ranbir Sandhu
>Systems Aligned Inc.
>www.systemsaligned.com
>
>_______________________________________________
>http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
>Be sure to check out the RT Wiki at http://wiki.bestpractical.com

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

Be sure to check out the RT Wiki at http://wiki.bestpractical.com



More information about the rt-users mailing list