ShowMessageHeaders in <pre>?

In ShowTransactions, ShowMessageHeaders is wrapped in a

 block.  On a
lot of my tickets with multiple recipients, this mades for an ugly display,
scrolling off to the right.

Why a

 instead of  ?

matthew zeier | “Nothing in life is to be feared.
InteleNet Communications, Inc. | It is only to be understood.”
(949) 784-7904 | - Marie Curie

In ShowTransactions, ShowMessageHeaders is wrapped in a

 block.
On a
lot of my tickets with multiple recipients, this mades for an ugly
display,
scrolling off to the right.

Why a

 instead of  ?

does the wrong thing in a block.

But this has been significantly cleaned up for 3.2.

PGP.sig (186 Bytes)

In ShowTransactions, ShowMessageHeaders is wrapped in a

 block.
On a
lot of my tickets with multiple recipients, this mades for an ugly
display,
scrolling off to the right.

Why a

 instead of  ?

From: Jesse jesse@fsck.com

does the wrong thing in a block.

What does “the wrong thing” mean?

In ShowMessageHeaders, I’ve added:

mrz, fix formatting

$content =~ s/\n/
/g;
$content .= “

\n”;

right before $m->comp().

And the message headers come across as:Subject: RE: [intelenet.net #21232] xxxxxxxxxx - possible
infected host
Date: Mon, 22 Mar 2004 20:59:43 -0800
To: intelenet-support@intelenet.net, “Joe User” joe@user.com
From: “Joe User 2” joe2@user.com

ps. You’ve changed mail readers… all your email bodies come across to
Outlook Express as text attachements.

matthew zeier | “In mathematics you don’t understand
InteleNet Communications, Inc. | things. You just get used to them.”
(949) 784-7904 | - John von Newmann

In ShowTransactions, ShowMessageHeaders is wrapped in a

 block.
On a
lot of my tickets with multiple recipients, this mades for an ugly
display,
scrolling off to the right.

Why a

 instead of  ?

From: Jesse jesse@fsck.com

does the wrong thing in a block.

What does “the wrong thing” mean?

IIRC, the problem was it will treat email addresses in <> as html tags
and that you need to go and manually escape each newline.

Your local fix sounds fine. See what we did in RT 3.1 for another
approach.

ps. You’ve changed mail readers… all your email bodies come across
to
Outlook Express as text attachements.

I’m using Apple mail.app’s OpenPGP support, which OE is apparently
unalbe to cope with.

PGP.sig (186 Bytes)

In ShowMessageHeaders, I’ve added:

My solution was to wrap the headers. I did this a quick and dirty
hack, intending to go back and add some configurability to it. Below
is a diff for ShowMessageHeaders.

Michael

— /opt/rt3/share/html/Ticket/Elements/ShowMessageHeaders 2004-01-02 17:55:55.000000000 -0500
+++ /opt/rt3/local/html/Ticket/Elements/ShowMessageHeaders 2004-02-18 10:08:32.000000000 -0500
@@ -23,7 +23,12 @@
%# END LICENSE BLOCK
<%$content |n%>
<%INIT>
-my $content = $Headers;
+my $temp = $Headers;
+require Text::Wrapper;
+my $content = Text::Wrapper->new(columns => 60)->wrap($temp);
RT::Interface::Web::EscapeUTF8($content);
$m->comp(‘/Elements/Callback’, content => $content, %ARGS);
</%INIT>

Michael S. Liebman m-liebman@northwestern.edu
http://msl521.freeshell.org/
“I have vision and the rest of the world wears bifocals.”
-Paul Newman in “Butch Cassidy & the Sundance Kid”