SignatureToTheTop

From Request Tracker Wiki
Jump to navigation Jump to search

From the rt-users mail list.

Full description: http://lists.bestpractical.com/pipermail/rt-users/2006-June/040249.html

Problem:

> My RT users and I have signatures that we want to appear at the > top (bottom is default) of the body of any coorespondance email. When > they respond to tickets, RT3.4 quotes the ticket content, but places > the RT user's signature on the bottom,[...]

Solution:

Change the html/Elements/MessageBox file. There is two way:

Manual

Edit this line:

<textarea class="messagebox" COLS=<%$Width%> ROWS=<%$Height%> WRAP=<%$Wrap%> NAME="<%$Name%>"><& /Elements/Callback, %ARGS &><% $Default %><%$message%><%$IncludeSignature ? $signature : ''%></textarea>

DO NOT FORGET: copy MessageBox file from the rt3/share tree to the rt3/local tree!

For RT 3.8: Change this line:

<% $Default || '' %><% $message %></textarea><% $signature %> To:

<% $signature %><% $Default || '' %><% $message %></textarea> 

I also had to restart apache to actually see the change, not sure why.

Patch

Patch against RT 3.4:

-------------- next part -------------- --- MessageBox 2006-06-30 17:09:53.000000000 -0300 +++ MessageBox 2006-06-30 17:10:28.000000000 -0300 @@ -43,7 +43,7 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} -<textarea class="messagebox" COLS=<%$Width%> ROWS=<%$Height%> WRAP=<%$Wrap%> NAME="<%$Name%>"><& /Elements/Callback, %ARGS &><% $Default %><%$message%><%$IncludeSignature ? $signature : ''%></textarea> +<textarea class="messagebox" COLS=<%$Width%> ROWS=<%$Height%> WRAP=<%$Wrap%> NAME="<%$Name%>"><& /Elements/Callback, %ARGS &><% $Default %><%$IncludeSignature ? $signature : ''%><%$message%></textarea> <%INIT> my ($message);