[rt-users] Where to insert the AutogeneratedPassword template text?

Ruslan U. Zakirov Ruslan.Zakirov at miet.ru
Thu Jul 14 08:12:07 EDT 2005


Matt England wrote:
> 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 ***
Don't worry, be happy.

> 
> 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?
You don't need touch any initial data. All you need you can do after
installation in the WebUI.
Login as root or other user with SuperUser right.

> 
> 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?
Goto Configuration tab in the WebUI, then Global->Templates.
Select 'autoreply' template. You should see page where you can edit
template.

Edit template.
Save changes.
Try again to send email.


> 
>> We have a Support queue in which we've created an auto reply template.
If queue specific autoreply template then edit it.

> 
> 
> 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