Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 74144 invoked from network); 6 Sep 2005 23:16:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Sep 2005 23:16:25 -0000 Received: (qmail 14746 invoked by uid 500); 6 Sep 2005 23:16:20 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 14725 invoked by uid 500); 6 Sep 2005 23:16:20 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 14712 invoked by uid 99); 6 Sep 2005 23:16:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2005 16:16:20 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of niall.pemberton@blueyonder.co.uk designates 195.188.213.6 as permitted sender) Received: from [195.188.213.6] (HELO smtp-out3.blueyonder.co.uk) (195.188.213.6) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2005 16:16:33 -0700 Received: from DELL1800 ([82.43.169.53]) by smtp-out3.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Wed, 7 Sep 2005 00:17:05 +0100 Message-ID: <05c901c5b339$f60f9010$0200a8c0@DELL1800> From: "Niall Pemberton" To: "Jakarta Commons Users List" References: <03CAD54D1DFAE5488B6C53178EF9EA3C030A27A7@EXCHANGE1.biperf.com> <431E12FE.6040202@btopenworld.com> <056701c5b335$e8d41960$0200a8c0@DELL1800> Subject: Re: [email] Commons-Email -- not J2EE 1.3? Date: Wed, 7 Sep 2005 00:23:17 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-OriginalArrivalTime: 06 Sep 2005 23:17:06.0006 (UTC) FILETIME=[18C5EF60:01C5B339] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Sorry, I missed a bit, along with the method/contructor with the new strict flag, they say.... "To allow applications to check the syntax of addresses the might've been parsed with the strict flag set to false, we add a validate method" ----- Original Message ----- From: "Niall Pemberton" Sent: Tuesday, September 06, 2005 11:54 PM > In JavaMail 1.2 you had no choice over how "strict" in checking the RFC822 > syntax of an email address was - whether you used the static parse() method > or the InternetAddress constructor to create a new InternetAddress object. > > In JavaMail 1.3 flavours of the parse() method and InternetAddress > constructor were added with a "strict" flag so that there was the option of > creating InternetAddress without strictly enforcing RFC822 syntax - the > reason being, in their words "To better support the range of "invalid" > addresses seen in real messages". > > Commons Email is however not constructing InternetAddress with an argument > of strict=false and therefore I believe the use of the validate() method is > completley spurious - since its going to throw any AddressExceptions when > the InternetAddress objects are constucted. I believe you could just remove > the line calling the validate() method in the Email.createInternetAddress() > method with no difference in behaviour. > > One other point - there don't appear to be any tests of invalid email > addresses in TestEmail. If there were, it would be easy to verify this. > > Niall > > ----- Original Message ----- > From: "Stephen Colebourne" > To: "Jakarta Commons Users List" > > > > Asleson, Ryan wrote: > > > Hello, > > > > > > I just tried using Commons-Email RC5 on WebLogic 8.1. When using the > Email.addTo method, I receive a NoSuchMethodError. > > > > > > It appears that the Email class is attempting to use > InternetAddress.validate(), which is part of J2EE 1.4, not 1.3. Since I'm > using WebLogic 8.1, which is only J2EE 1.3, it looks like I'm stuck. > > > > > > Is there any way around this? > > > > This sounds like something that should be fixed. Not sure what the > > alternative to this method is though... > > > > Stephen > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org