Improvements to request tracker

Hi.

I started using Request Tracker and it shortly turned out that it screws
up Scandinavian and newline characters.

I corrected the situation by adding the following regexps to
lib/rt/support/mail.pm 's sub template_replace_tokens{} (right after the
last substitute to $template):

# corrects incorrectly shown "non-US" characters
$template =~ s/=([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
# corrects incorrect line wraps
$template =~ s/(=\n)*//g;

I also modified mail.pm so that it adds the following headers to all
outgoing mail:

MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

This worked out and now I see everything correctly in my mails. However,
these modifications do not apply to the web interface which still screws
e.g. all Ä and Ö characters, and wraps every line too early.

Since I don’t have much time and I rarely use the web interface, I didn’t
attempt to fix it, but I just wanted to let you know about this problem I
had. Maybe you will fix the web thingie for me… :slight_smile:

Best regards,

– Petrus

I believe RT 2.0 handles all of this a lot better. I’d be curious to know if it does the right thing for you.

    -jOn Sat, Aug 11, 2001 at 04:32:25PM +0300, Petrus Repo wrote:

Hi.

I started using Request Tracker and it shortly turned out that it screws
up Scandinavian and newline characters.

I corrected the situation by adding the following regexps to
lib/rt/support/mail.pm 's sub template_replace_tokens{} (right after the
last substitute to $template):

# corrects incorrectly shown "non-US" characters
$template =~ s/=([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
# corrects incorrect line wraps
$template =~ s/(=\n)*//g;

I also modified mail.pm so that it adds the following headers to all
outgoing mail:

MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

This worked out and now I see everything correctly in my mails. However,
these modifications do not apply to the web interface which still screws
e.g. all Ä and Ö characters, and wraps every line too early.

Since I don’t have much time and I rarely use the web interface, I didn’t
attempt to fix it, but I just wanted to let you know about this problem I
had. Maybe you will fix the web thingie for me… :slight_smile:

Best regards,

– Petrus


Rt-devel mailing list
Rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel

jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

I think co-ordinating 1000 prima donnas living all over the world will be as
easy as herding cats…" – Andy Tanenbaum on the linux development model, 1992