Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Linux: because a PC is a terrible thing to waste -- ksh@cis.ufl.edu put this on Tshirts in '93


devel / comp.lang.python / Re: Checking if email is valid

SubjectAuthor
o Re: Checking if email is validSimon Connah

1
Re: Checking if email is valid

<mailman.121.1698907635.3828.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=28709&group=comp.lang.python#28709

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder2.eternal-september.org!eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: simon.n.connah@protonmail.com (Simon Connah)
Newsgroups: comp.lang.python
Subject: Re: Checking if email is valid
Date: Thu, 02 Nov 2023 06:46:47 +0000
Lines: 65
Message-ID: <mailman.121.1698907635.3828.python-list@python.org>
References: <nze9mu-VI8ExA3VA9RA07qMo9Oj03xuWoTe-FL6N_AbOGK0QC6LdqaeKq-OvcrilFYqqT5tc9LsvSqHRKDYMGaBXzlVzyOdX9Ae0Xp_ACtg=@protonmail.com>
<CAPTjJmoUis6+RV5um=pnocr=K54f2c4d5zN2Zvo10pxh79yUGg@mail.gmail.com>
<-9noVuOpUQAkPbuiynyonZmXsAiNxRiuOlqaSXQrxmsQreDAE5R-MIt72P3SLBqmntdEd5QI2eSl969CcTVWUUz416g4T8nqC8xB1wZxkCc=@protonmail.com>
Mime-Version: 1.0
Content-Type: multipart/signed; protocol="application/pgp-signature";
micalg=pgp-sha512;
boundary="------4b1b5a2fb4d79f33e504f3bfe9086546896f66c9556a8814e4cf1ab1e54d83ec";
charset=utf-8
X-Trace: news.uni-berlin.de Obd1LT7TwdOD8fBbOl9wGgRxeKAXeTLPIdAOJANFfLIQ==
Cancel-Lock: sha1:6OUnqfgKXyM/ux5Ewm+b+3vD61g= sha256:Rb04Ww7T43IKuxK6VKX8JQ9Jay5tRTi3BBQRV8FlI60=
Return-Path: <simon.n.connah@protonmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=protonmail.com header.i=@protonmail.com header.b=OHXQ+vNr;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'looks': 0.02; 'content-
type:multipart/signed': 0.05; '2023': 0.07; 'please?': 0.07;
'string': 0.07; 'cc:addr:python-list': 0.09; 'content-
type:application/pgp-signature': 0.09; 'filename:fname piece:asc':
0.09; 'filename:fname piece:signature': 0.09;
'filename:fname:signature.asc': 0.09; 'bounces': 0.16; 'content-
disposition:attachment; filename="signature.asc"': 0.16;
'database.': 0.16; 'received:mail-europe.com': 0.16; 'simon':
0.16; 'though?': 0.16; 'wrote:': 0.16; 'addresses': 0.19; 'thu,':
0.19; 'cc:addr:python.org': 0.20; 'goal': 0.23; 'cc:2**0': 0.25;
'example,': 0.28; 'wrong': 0.28; 'guess': 0.32; 'message-
id:@protonmail.com': 0.32; 'python-list': 0.32; "i'm": 0.33;
'mailing': 0.33; 'there': 0.33; 'someone': 0.34; 'header:In-Reply-
To:1': 0.34; 'trying': 0.35; 'close': 0.35; 'really': 0.37;
"it's": 0.37; 'way': 0.38; 'could': 0.38; 'valid': 0.39; 'list':
0.39; 'want': 0.40; 'email': 0.63; 'send': 0.63; 'received:51':
0.64; 'your': 0.64; 'right': 0.68; 'content-type:multipart/mixed':
0.68; 'order': 0.69; 'care': 0.71; 'header:Received:2': 0.84;
'valid,': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com;
s=protonmail3; t=1698907620; x=1699166820;
bh=hL+LnL1l8GXBNUaTH9+ZrrtRKbaqrYqRTqhifcDt8QM=;
h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References:
Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID:
Message-ID:BIMI-Selector;
b=OHXQ+vNrkx9KfPZMwIagP8J/2q3JSxZVJVty2t2VvUF0HxdFX//4oPLvqCp21pHR2
109TQt08phqwhFr7FyLn/yTLMqUlpdLUKjaV5aT2rmiZ4CxjmlxSyXKio2XJ3mcRJ+
WKrDvJd5QjVKt1OOumU4AAkZ7EcfhzjbV4HF3e/RnfsWX/0vUpTPOMuXiLmvoRR7oD
pr5DfW7xyGo9Py3A9zooH0paEh9X7GviRpFkzqrdRdVzAJsi1kMJjcfSUFzgWFnYNd
41cMf+rsNENVkJeROedW/wpZasnGGI2bANWNY2sSZ0hdcMiQNMa+zJFeo5rXr9b/BD
Tsb9e57Lb7ArQ==
In-Reply-To: <CAPTjJmoUis6+RV5um=pnocr=K54f2c4d5zN2Zvo10pxh79yUGg@mail.gmail.com>
Feedback-ID: 24074989:user:proton
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <-9noVuOpUQAkPbuiynyonZmXsAiNxRiuOlqaSXQrxmsQreDAE5R-MIt72P3SLBqmntdEd5QI2eSl969CcTVWUUz416g4T8nqC8xB1wZxkCc=@protonmail.com>
X-Mailman-Original-References: <nze9mu-VI8ExA3VA9RA07qMo9Oj03xuWoTe-FL6N_AbOGK0QC6LdqaeKq-OvcrilFYqqT5tc9LsvSqHRKDYMGaBXzlVzyOdX9Ae0Xp_ACtg=@protonmail.com>
<CAPTjJmoUis6+RV5um=pnocr=K54f2c4d5zN2Zvo10pxh79yUGg@mail.gmail.com>
 by: Simon Connah - Thu, 2 Nov 2023 06:46 UTC
Attachments: "signature.asc" (application/pgp-signature)

>

>

> On Thu, 2 Nov 2023 at 05:21, Simon Connah via Python-list
> python-list@python.org wrote:
>

> > Could someone push me in the right direction please? I just want to find out if a string is a valid email address.
>

>

> There is only one way to know that a string is a valid email address,
> and that's to send an email to it.
>

> What is your goal though? For example, if you're trying to autolink
> email addresses in text, you don't really care whether it's valid,
> only that it looks like an address.
>

My goal is to make a simple mailing list platform. I guess I could just send email to an address and if it bounces then I can remove it from the database. Thing is I'm not sure how close to a real email address an email has to be in order to be bounced. If it was completely wrong it might just swallowed up.

Simon.

Attachments: "signature.asc" (application/pgp-signature)

devel / comp.lang.python / Re: Checking if email is valid

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor