I did new javax.mail.internet.InternetAddress(....) with that address and
got no exception... Maybe you're using an older javamail version?  (I'm
using 1.2 which is used by James)

Serge Knystautas
Loki Technologies
http://www.lokitech.com/
----- Original Message -----
From: "Oki DZ" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 11, 2001 2:50 AM
Subject: InternetAddress


> Hi,
>
> I'd like to verify that destination addresses are valid ones; I use
> InternetAddress as a validator in a matcher. Unfortunately, the following
> address throws an Exception:
>
[EMAIL PROTECTED]
he.org
> Which one is wrong? The address, or the
> javax.mail.internet.InternetAddress?
>
> BTW, where can I get a regex for validating email addresses? I've been
> looking for it in Google, but the advice I got was to use a Perl module
> (well, there must be the source somewhere, but Perl module source is
> beyond me). Ideally, the regex is for ORO (Perl regex or Awk), so that I
> can immediately insert it in the matchers.
>
> TIA,
> Oki
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to