[rt-users] Better formatting for attachment headers?
asterr
asterr at pobox.com
Wed Oct 15 03:01:41 EDT 2003
I am using RT 3.0.6.
The problem I have seen is that if there is a long Cc: or To: list in the
e-mail header, the ticket display goes outside of the browser window.
Digging into this, this seems to be due to the use of <PRE> in
Ticket/Elements/ShowTransaction around where ShowMessageHeaders is called.
Wouldn't it be better to avoid the <PRE> tag, and just replace newlines with
<br>?
I have done the following for my installation:
nydli005 RT/ $ diff -c share/html/Ticket/Elements/ShowTransaction local/html/Ticket/Elements/ShowTransaction
*** share/html/Ticket/Elements/ShowTransaction Thu Sep 25 16:31:06 2003
--- local/html/Ticket/Elements/ShowTransaction Wed Oct 15 02:13:00 2003
***************
*** 68,76 ****
<TD> </TD>
<TD COLSPAN=3 VALIGN=TOP>
<span class="message">
- <PRE>
<& ShowMessageHeaders, Headers => $headers, Transaction => $Transaction &>
- </PRE>
<& ShowMessageStanza, Depth => 0, Message => $quoted, Transaction => $Transaction &>
</span>
</TD>
--- 68,74 ----
nydli005 RT/ $ diff -c share/html/Ticket/Elements/ShowMessageHeaders local/html/Ticket/Elements/ShowMessageHeaders
*** share/html/Ticket/Elements/ShowMessageHeaders Thu Sep 25 16:31:06 2003
--- local/html/Ticket/Elements/ShowMessageHeaders Wed Oct 15 02:39:32 2003
***************
*** 25,30 ****
--- 25,36 ----
<%INIT>
my $content = $Headers;
RT::Interface::Web::EscapeUTF8(\$content);
+
+ my @headers = split( /\n/, $content);
+ #$content= "";
+ $content =~ s/\n/<br>/g;
+ $content .= "<br><br>\n";
+
$m->comp('/Elements/Callback', content => \$content, %ARGS);
</%INIT>
<%ARGS>
Regards,
Aaron Sterr
More information about the rt-users
mailing list