Auto-generated random pronounceable password

Here the code of the template “Autoreply”

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()}

When I copied and pasted this exactly as-is to my default "Autoreply"
template, it put the content in the Subject line. Why ? I don’t understand

Please help me it’s very important to use the SelfService wed interface.

Here the code of the template “Autoreply”

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()}

When I copied and pasted this exactly as-is to my default "Autoreply"
template, it put the content in the Subject line. Why ? I don’t understand

Does it have anything to do with the leading space of the first line of content?

-m