Skip Menu |

This queue is for tickets about the MIME-EncWords CPAN distribution.

Report information
The Basics
Id: 79399
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: MIME-EncWords

People
Owner: hatuka [...] nezumi.nu
Requestors: mhasch-cpanbugs [...] cozap.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 1.012.4
  • 1.009
  • 1.010
  • 1.010.10
  • 1.010.101
  • 1.011
  • 1.011.1
  • 1.011_01
  • 1.011_02
  • 1.012
  • 1.012.1
  • 1.012.2
  • 1.012.3
Fixed in: 1.012_5



Subject: wasteful chunk separation
encode_mimewords() sometimes puts parts of words in separate chunks without any reason to do so, resulting in an encoded string that is longer than it needs to be. Example: use strict; use warnings; use MIME::EncWords qw(encode_mimewords); my $input = qq{ZfkrdiN\xfcvqrtmmy: Qsaherpjramvve sh Adkbufmikqe cv } . qq{mmq Raqsylw-J\xf6jggexbj}; my $output = encode_mimewords($input, Field => 'Subject'); print "Subject: $output\n"; This prints: Subject: =?ISO-8859-1?Q?ZfkrdiN=FCvqrtmmy=3A?= Qsaherpjramvve sh Adkbufmikqe cv mmq =?ISO-8859-1?Q?Raqsy?= =?ISO-8859-1?Q?lw-J=F6jggexbj?= I would have expected it to print: Subject: =?ISO-8859-1?Q?ZfkrdiN=FCvqrtmmy=3A?= Qsaherpjramvve sh Adkbufmikqe cv mmq =?ISO-8859-1?Q?Raqsylw-J=F6jggexbj?= I suspect that the extra chunk is supposed to prepare splitting of a particularly long word into separate lines, but the trigger to detect such words is somehow off the mark. -Martin
Hi Martin, I uploaded MIME-EncWords-1.012_5. Would you please check it? -- --- nezumi
Subject: Re: [rt.cpan.org #79399] wasteful chunk separation
Date: Thu, 6 Sep 2012 23:25:03 +0200
To: Hatuka*nezumi - IKEDA Soji via RT <bug-MIME-EncWords [...] rt.cpan.org>
From: Martin Becker <mhasch-cpanbugs [...] cozap.com>
Nezumi: On Wed, Sep 05, 2012 at 04:32:10AM -0400, Hatuka*nezumi - IKEDA Soji via RT wrote: Show quoted text
> I uploaded MIME-EncWords-1.012_5. > Would you please check it?
Thank you for your quick response. I have tried out the new version and it worked very well. In particular, the issue I reported seems to be solved. -Martin
Closed. Thank you!