Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id EFD054767A7 for ; Tue, 3 Sep 2002 09:24:02 -0400 (EDT) Received: from spike.esolution.pl (unknown [217.11.134.154]) by postgresql.org (Postfix) with ESMTP id D935F476305 for ; Tue, 3 Sep 2002 09:20:37 -0400 (EDT) Received: from pa127.warszawa.cvx.ppp.tpnet.pl ([213.76.96.127] helo=depesz.pl) by spike.esolution.pl with esmtp (Exim 4.10) id 17mDWf-0005Oz-00; Tue, 03 Sep 2002 15:15:26 +0200 Received: from depesz by depesz.pl with local (Exim 3.36 #1) id 17m9Fo-0002mq-00; Tue, 03 Sep 2002 10:41:44 +0200 Date: Tue, 3 Sep 2002 10:41:44 +0200 From: Hubert depesz Lubaczewski To: Matthew Price , pgsql-sql@postgresql.org Subject: Re: RFC822 Checker Message-ID: <20020903084144.GA10453@depesz.pl> Reply-To: depesz@depesz.pl References: <20020830.100812.20767.2685@webmail6.nyc.untd.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline In-Reply-To: <20020830.100812.20767.2685@webmail6.nyc.untd.com> User-Agent: Mutt/1.4i X-info-en-1: this message *may* reflect my personal opinion. it is *not* X-info-en-2: intended to reflect those of my employer, or anyone else. X-info-pl-1: wszelkie opinie =?iso-8859-2?Q?wyra=BFone_?= =?iso-8859-2?Q?w_tym_li=B6cie_prezentuj=B1_wy=B3=B1cznie_pogl=B1dy?= X-info-pl-2: autora listu. opinie =?iso-8859-2?Q?te_?= =?iso-8859-2?Q?w_=BFadnym__razie_nie__wyra=BFaj=B1__pogl=B1d=F3w?= X-info-pl-3: pracodawcy autora =?iso-8859-2?Q?listu_?= =?iso-8859-2?Q?_ani__innych__zwi=B1zanych__z__nim__os=F3b=2E?= X-Operating-System: Linux 2.2.21 i686 AMD_Athlon(tm)_Processor X-code: perl -e 's&&_b`s .oqnb.lntmsr_&&&y&, -{&--|&&&s&&$_&ee&&map{y&--|&, -{&&&s&&_gd`c , b14///// .cdu.tq`mcnl=${_}_&&&y&, -{&--|&&&s ee$_eee}grep m m[hs]dwm&&!$x{$_}++, map m msm&&$`, split v10' X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *17mDWf-0005Oz-00*SfCN85ifBMs* X-Spam-Score: -5.8 (-----) X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/7 X-Sequence-Number: 9284 --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 30, 2002 at 02:07:28PM +0000, Matthew Price wrote: > Does anyone know of an SQL function that will check a string for > compliance with the RFC822 mail address spec? I have a script that > sends mail from a db (no, I am not a spammer) but I often have mails > sitting in my queue because the MTA (correctly) refuses to process > some of the bogus things that users enter by mistake. you might want to check: ftp://ftp.cpan.org/CPAN/authors/Tom_Christiansen/scripts/ckaddr.gz since this is in pure perl, making a pl/perl function should be pretty simple. depesz --=20 hubert depesz lubaczewski http://www.depesz.pl/ ------------------------------------------------------------------------ M=F3j Bo=BFe, spraw abym milcza=B3, dop=F3ki si=EA nie upewni=EA, =BFe na= prawd=EA mam co=B6 do powiedzenia. (c) 1998 depesz --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9dHXIKBwKA0prOAkRApcoAKDQCf5DhyEtPx3SEDWsbC5WhIJUoQCdGcY5 mx2fTQkMxMef6O8kGlyaxOo= =MyVg -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz--