<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Nathan,<br>
    I wanted a similar effect. This file will alter the 'tag' to be
rt_name:Queue_name ... In my case, that becomes things like
ISP:NS_Support or ISP:NS_Admin<br>
<br>
    I then use the RT_SiteConfig.pm to set a new SubjectRegex such as:<br>
    Set($EmailSubjectTagRegex, qr/ISP:\w+/ );<br>
<br>
    Change the "ISP" in the above to match to your current $rt_name (I
could have used $rt_name, but I hacked it for me :P :) try it and it
might make it all transparent for you... ).<br>
    The SendEmail_Local.pm file I actually picked up through an old
install of RTx::Foundry - So compliments to the original author there
who let me stumble upon this 'trick'.<br>
<br>
    Add the attached file into /opt/rt3/local/lib/RT/Action  <br>
<br>
    If you want to alter it further, it is fairly straight forward to
look in the attached file to see how its built. <br>
<br>
    The advantage of doing it this way is its a clean 'overlay' that
will work when you upgrade RT.. the SendMail_Local just overwrites the
specific function it needs too. I had this working for 3.4.X and now
use it in my current 3.5.5 install.<br>
<br>
Hope this helps<br>
<br>
Adrian<br>
<br>
    <br>
<br>
Nathanial Swallen wrote:
<blockquote
 cite="mid20051214014329.639584D80DC@diesel.bestpractical.com"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 11 (filtered medium)">
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
  </style>
  <div class="Section1">
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;">It doesn’t seem possible
to change the original
subject tag (with the company name) in the templates. How can I set
variable
subjects for each queue? This would make organization much more easy
for
internal use and would be more informative for customers when it comes
to
auto-replies and notifications.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;"><o:p> </o:p></span></font></p>
  <table class="MsoNormalTable" style="width: 240pt;" border="0"
 cellpadding="0" cellspacing="0" width="320">
    <tbody>
      <tr>
        <td style="padding: 0in;">
        <table class="MsoNormalTable" style="width: 240pt;"
 align="right" border="0" cellpadding="0" cellspacing="0" width="320">
          <tbody>
            <tr>
              <td style="padding: 0in;">
              <table class="MsoNormalTable"
 style="border: 1pt solid rgb(102, 102, 102); width: 240pt;" border="1"
 cellpadding="0" cellspacing="0" width="320">
                <tbody>
                  <tr>
                    <td style="border: medium none ; padding: 0.75pt;">
                    <table class="MsoNormalTable" style="width: 100%;"
 align="right" border="0" cellpadding="0" width="100%">
                      <tbody>
                        <tr style="height: 0.75pt;" height="1">
                          <td
 style="padding: 0.75pt 0.75pt 3pt 3pt; height: 0.75pt;" height="1"
 valign="top">
                          <p class="MsoNormal"><b><font color="#6c6cff"
 face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana; color: rgb(108, 108, 255); font-weight: bold;">Nathanial
Swallen</span></font></b><font color="#6c6cff" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana; color: rgb(108, 108, 255);"><br>
                          <i><span style="font-style: italic;">Billing
Admin</span></i> <o:p></o:p></span></font></p>
                          </td>
                          <td
 style="padding: 0.75pt 3pt 3pt 0.75pt; height: 0.75pt;" height="1"
 valign="top">
                          <p class="MsoNormal"
 style="text-align: right;" align="right"><b><font color="#6c6cff"
 face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana; color: rgb(108, 108, 255); font-weight: bold;">iNode
/ Qualmax</span></font></b><font color="#6c6cff" face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana; color: rgb(108, 108, 255);"><br>
                          <a
 href="http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=488+Lincoln+St.&csz=Eugene%2C+OR+97401&country=us"
 target="_blank"><font color="#6c6cff"><span
 style="color: rgb(108, 108, 255); text-decoration: none;">488 Lincoln
St.<br>
Eugene, OR 97401</span></font></a> <o:p></o:p></span></font></p>
                          </td>
                        </tr>
                        <tr style="height: 0.75pt;" height="1">
                          <td
 style="padding: 0.75pt 0.75pt 3pt 3pt; height: 0.75pt;" height="1"
 valign="bottom">
                          <p class="MsoNormal"><font color="#6c6cff"
 face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana; color: rgb(108, 108, 255);"><a
 href="mailto:nathan@inode-x.com" target="_blank"><font color="#6c6cff"><span
 style="color: rgb(108, 108, 255); text-decoration: none;">nathan@inode-x.com</span></font></a>
                          <o:p></o:p></span></font></p>
                          </td>
                          <td
 style="padding: 0.75pt 3pt 3pt 0.75pt; height: 0.75pt;" height="1"
 valign="bottom">
                          <table class="MsoNormalTable" align="right"
 border="0" cellpadding="0" cellspacing="0">
                            <tbody>
                              <tr>
                                <td style="padding: 0.75pt;" nowrap="nowrap">
                                <p class="MsoNormal"
 style="text-align: right;" align="right"><font color="#6c6cff"
 face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana; color: rgb(108, 108, 255);">tel:
                                <br>
mobile: <o:p></o:p></span></font></p>
                                </td>
                                <td
 style="padding: 0.75pt 0.75pt 0.75pt 3pt;" nowrap="nowrap">
                                <p class="MsoNormal"
 style="text-align: right;" align="right"><font color="#6c6cff"
 face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana; color: rgb(108, 108, 255);">541-868-2904<br>
541-579-1054 <o:p></o:p></span></font></p>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                          <p class="MsoNormal"
 style="text-align: right;" align="right"><font color="#6c6cff"
 face="Verdana" size="1"><span
 style="font-size: 8pt; font-family: Verdana; color: rgb(108, 108, 255);"><o:p></o:p></span></font></p>
                          </td>
                        </tr>
                      </tbody>
                    </table>
                    <p class="MsoNormal"><font face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><o:p></o:p></span></font></p>
                    </td>
                  </tr>
                </tbody>
              </table>
              <p class="MsoNormal"><font face="Times New Roman" size="1"><span
 style="font-size: 1pt;"><o:p></o:p></span></font></p>
              </td>
              <td style="padding: 0in;">
              <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;"><o:p> </o:p></span></font></p>
              </td>
            </tr>
          </tbody>
        </table>
        <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;"><o:p></o:p></span></font></p>
        </td>
      </tr>
      <tr>
        <td style="padding: 0in;">
        <table class="MsoNormalTable" style="width: 100%;" border="0"
 cellpadding="0" cellspacing="0" width="100%">
          <tbody>
            <tr>
              <td style="padding: 0in;">
              <p class="MsoNormal" style="text-align: center;"
 align="center"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;"><a href="http://www.plaxo.com/signature"
 target="_blank"><i><font color="#777777" face="Verdana" size="1"><span
 style="font-size: 7pt; font-family: Verdana; color: rgb(119, 119, 119); font-style: italic; text-decoration: none;">Want
a signature like this?</span></font></i></a><o:p></o:p></span></font></p>
              </td>
            </tr>
          </tbody>
        </table>
        <p class="MsoNormal"><font face="Times New Roman" size="1"><span
 style="font-size: 1pt;"><o:p></o:p></span></font></p>
        </td>
      </tr>
    </tbody>
  </table>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;"><o:p> </o:p></span></font></p>
  </div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
<a class="moz-txt-link-freetext" href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a>

Be sure to check out the RT Wiki at <a class="moz-txt-link-freetext" href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</a>

Download a free sample chapter of RT Essentials from O'Reilly Media at <a class="moz-txt-link-freetext" href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</a>

WE'RE COMING TO YOUR TOWN SOON - RT Training in Amsterdam, Boston and
San Francisco - Find out more at <a class="moz-txt-link-freetext" href="http://bestpractical.com/services/training.html">http://bestpractical.com/services/training.html</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Adrian Carter
Technical Manager
Leading Edge Internet

Web       <a class="moz-txt-link-freetext" href="http://www.lei.net.au">http://www.lei.net.au</a> <a class="moz-txt-link-freetext" href="http://support.lei.net.au">http://support.lei.net.au</a>
Direct    +61 2 6163 6162  Support 1 300 662 415
E-mail    <a class="moz-txt-link-abbreviated" href="mailto:cartera@lei.net.au">cartera@lei.net.au</a>
</pre>
</body>
</html>