Hello all,<br><br>Through the RT Site configuration file it is possible to define Set($EmailSubjectTagRegex, qr/\Q$rtname\E/ ); so that RT will accept multiple RT tags in the event that you change your rtname. I have a situation where I would like to have the tag defined based on a property of the ticket, such as queue name or a custom field. I was curious if anyone else has come across this need before, and what if any were the solutions? So far what I have planned to try is to change the SetSubjectToken sub in lib/RT/Action/SendEmail.pm (RT 
3.4.2) as follows:<br><br>sub SetSubjectToken {<br>    my $self = shift;<br><br>    my $rtname_map = {<br>             'QueueName1' => 'tag1',<br>             'QueueName2' => 'tag2',<br>    };<br><br>    my $tag  = "[$RT::rtname #" . $self->TicketObj->id . "]";
<br><br>    my $new_rtname = $rtname_map->{$self->TicketObj->QueueObj->Name};<br>    if ($new_rtname) {<br>        $tag  = "[$new_rtname #" . $self->TicketObj->id . "]";<br>    }<br><br>
    my $sub  = $self->TemplateObj->MIMEObj->head->get('Subject');<br>    unless ( $sub =~ /\Q$tag\E/ ) {<br>        $sub =~ s/(\r\n|\n|\s)/ /gi;<br>        chomp $sub;<br>        $self->TemplateObj->MIMEObj->head->replace( 'Subject', "$tag $sub" );
<br>    }<br>}<br><br>And also modify any templates and/or scrips as needed<br><br>Does this look like it would do the trick?<br><br>Regards,<br>Dustin<br><br>