Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E46F110668 for ; Wed, 16 Oct 2013 21:51:28 +0000 (UTC) Received: (qmail 93203 invoked by uid 500); 16 Oct 2013 21:50:43 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 92673 invoked by uid 500); 16 Oct 2013 21:49:24 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 92057 invoked by uid 99); 16 Oct 2013 21:48:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Oct 2013 21:48:17 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of thomas.neidhart@gmail.com designates 74.125.83.47 as permitted sender) Received: from [74.125.83.47] (HELO mail-ee0-f47.google.com) (74.125.83.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Oct 2013 21:48:10 +0000 Received: by mail-ee0-f47.google.com with SMTP id d49so662188eek.6 for ; Wed, 16 Oct 2013 14:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=9GsN9Fn1eyFiv1fvlqiLUJ1uyG3MZENpCGxfbI+/w2M=; b=Q/So1uhCyvvVDorzuzsR2GAxbUx7gTmU8bf6UInY7onCPTCpwmDhxj7f43KG7xa4/Z rNAKepUIv1DXVK55ssiF0+uDaGMw/EjOE+WmQTC9CSotnlnsnS84XsOrZvdk2gSYzEfX PQPFkdQvdChD3Ndd3yUIpx9a5JFkIsbkEInOVi5DNDNXEPJDqwtagF/gfF4io/CVg7HZ xdDDEFi9Vb4X9rL/Es5yxggrbUVDvlzsuX3MQfFfUu1wVfcx4Ny9pheT5+c2Svuj1Msf nF772INmdW8OMRKheBstemTce5DRGlvRbctae8aK+BX6u4IzA8jnGZ9+W3dW4HnJBwdQ ZmIg== X-Received: by 10.15.45.8 with SMTP id a8mr7929038eew.1.1381960069283; Wed, 16 Oct 2013 14:47:49 -0700 (PDT) Received: from [192.168.1.2] (ip-83-134-96-246.dsl.scarlet.be. [83.134.96.246]) by mx.google.com with ESMTPSA id f49sm184450080eec.7.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Oct 2013 14:47:48 -0700 (PDT) Message-ID: <525F0984.3020606@gmail.com> Date: Wed, 16 Oct 2013 23:47:48 +0200 From: Thomas Neidhart User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: dev@commons.apache.org Subject: Re: [VOTE] Release of Commons Email 1.3.2 based on RC1 References: <525DBFA2.7090009@gmail.com> <525ECF68.1080104@it20one.at> In-Reply-To: <525ECF68.1080104@it20one.at> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 10/16/2013 07:39 PM, Siegfried Goeschl wrote: > Hi Thomas, > > I have issue when builing on the command line - > >> mvn clean install > > Oct 16, 2013 10:39:02 AM org.subethamail.smtp.server.ServerThread run > INFO: SMTP server *:2510 stopped > emailMessage > =================================================================== > Received: from 172.22.120.122 (localhost [127.0.0.1]) > by 172.22.120.122 > with SMTP (SubEthaSMTP 3.1.7) id HMUB60OT > for test_to@apache.org; > Wed, 16 Oct 2013 10:39:02 +0200 (CEST) > Date: Wed, 16 Oct 2013 10:39:02 +0200 (CEST) > From: test_from@apache.org > To: test_to@apache.org > Message-ID: <429777281.42.1381912742908.JavaMail.sgoeschl@district9.local> > Subject: Test Msg Subject > MIME-Version: 1.0 > Content-Type: text/plain; charset=utf-8 > Content-Transfer-Encoding: base64 > > VGVzdCBNc2cgQm9keSDDo8KCwrAgw6PCgsKxIMOjwoLCsiDDo8KCwrMgw6PCgsK0 > - 578 > strMessage > =================================================================== > strMessage - 33 > Test Msg Body ??? ??? ??? ??? ??? > Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.021 > sec <<< FAILURE! - in org.apache.commons.mail.SimpleEmailTest > testDefaultMimeCharset(org.apache.commons.mail.SimpleEmailTest) Time > elapsed: 0.012 sec <<< FAILURE! > java.lang.AssertionError: didn't find expected message content in > message body > at org.junit.Assert.fail(Assert.java:88) > at org.junit.Assert.assertTrue(Assert.java:41) > at > org.apache.commons.mail.AbstractEmailTest.validateSend(AbstractEmailTest.java:395) > > at > org.apache.commons.mail.SimpleEmailTest.testDefaultMimeCharset(SimpleEmailTest.java:155) > > > Running org.apache.commons.mail.util.MimeMessageParserTest > Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029 > sec - in org.apache.commons.mail.util.MimeMessageParserTest > > Results : > > Failed tests: > SimpleEmailTest.testDefaultMimeCharset:155->AbstractEmailTest.validateSend:395 > didn't find expected message content in message body > > Tests run: 169, Failures: 1, Errors: 0, Skipped: 0 > > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 13.110s > [INFO] Finished at: Wed Oct 16 10:39:02 CEST 2013 > [INFO] Final Memory: 12M/81M > > Some thoughts along the line > > * this problem does not occur in IntellJ with JDK 1.6 / 1.7 > * I'm running Mac OS X java version "1.6.0_31", Java(TM) SE Runtime > Environment (build 1.6.0_31-b04-415-12D78), Java HotSpot(TM) 64-Bit > Server VM (build 20.6-b01-415, mixed mode) > * I think the email message is the error case still Base64 decoded > * It would be safer to use Unicode Escape Sequences instead of UTF-8 > message string since you have ASCII code only Thanks for the output, I was hesitating to include this unit test, but I did not have a better idea to test the charset setting. There seems to be some kind of randomness in javamail to select the encoding based on the charset. In my environment I get either quoted-printable or 7zip, but in another test-case (which I changed afterwards), the encoding was also base64 when running in eclipse, and quoted-printable when running the same test from the command-line. The test itself tries to do the following: * send a message with unicode characters using the utf-8 charset from the system property "mail.mime.charset" * read back the message and compare the text with the one that was send this obviously does not work when base64 encoding is used, as the message is not decoded when comparing. As a conclusion, I will rework the test-case ;-). Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org