I live in denmark and so once in a while use certain european characters
in the subjectlines. As RT does not decode this, I have been annoyed of
seeing something like:
in the queue-view. I have now made a little hack, which someone perhaps
could find usefull too. Is is not pretty nor perfect, but it works for me
The trick is to use the MIME-module in perl to decode the quoted-printable
characters and then substitute the âiso-8859-1â-tag away. This can, as I
said, probably be done quite more elegant, but hey, it works for me.
In lib/rt/ui/web/manipulate.pm, sub display_queue I changed
the place where âsubjectâ is printed to:
";
#By Jesper Holm Olsen: This decodes Quoted-printable from subject.
use MIME::QuotedPrint;
my $decoded;
$decoded = decode_qp($rt::req[$temp]{âsubjectâ});
$decoded =~ s/=?iso-8859-1?Q?(.*)?=/$1/;
print â$decoded â;
This way at least my overview of a queue is pretty to read.
Jesper Holm Olsen, Department of Computer Science and Department of
Film and Media studies, University of Copenhagen
Email: dunkel@diku.dk * Homepage: http://www.diku.dk/students/dunkel