classpathx-javamail
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Classpathx-javamail] Bug: gnu.mail.util.QPOutputStream encodes line


From: Andy Wu
Subject: Re: [Classpathx-javamail] Bug: gnu.mail.util.QPOutputStream encodes linebreaks
Date: Wed, 30 Aug 2006 10:45:53 +0100
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)

False alarm. Turns out I had an old version of the class which I'd updated manually but missed a vital change in 1.4.

Andy

Chris Burdess wrote:
Andy Wu wrote:
I believe I've found a bug in the QPOutputStream code. When it comes across a line break both "\r\n" and "=0D=0A" are being output resulting in extraneous new lines.

The fault appears to lie in the write( int b ) method. If b=='\r' or b=='\n' the last if block should be avoided as the outputCRLF() will have already done what's required.

Hi Andy,

If you could submit a patch, preferably with a small test case that demonstrates the problem and passes with the patch, it would be much appreciated.
--犬 Chris Burdess
  "They that can give up essential liberty to obtain a little safety
  deserve neither liberty nor safety." - Benjamin Franklin









reply via email to

[Prev in Thread] Current Thread [Next in Thread]