Better formatting for attachment headers?

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

 in
Ticket/Elements/ShowTransaction around where ShowMessageHeaders is called.

Wouldn’t it be better to avoid the

 tag, and just replace newlines with

?

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 ****

  

  •   <PRE>
    
    <& ShowMessageHeaders, Headers => $headers, Transaction => $Transaction &>
  • <& ShowMessageStanza, Depth => 0, Message => $quoted, Transaction => $Transaction &>

— 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/
    /g;
  • $content .= “

    \n”;
    $m->comp(’/Elements/Callback’, content => $content, %ARGS);
    </%INIT>
    <%ARGS>

Regards,
Aaron Sterr