Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

According to the latest official figures, 43% of all statistics are totally worthless.


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

SubjectAuthor
o Re: Checking if email is validGrant Edwards

1
Re: Checking if email is valid

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: grant.b.edwards@gmail.com (Grant Edwards)
Newsgroups: comp.lang.python
Subject: Re: Checking if email is valid
Date: Wed, 01 Nov 2023 14:50:43 -0700 (PDT)
Lines: 28
Message-ID: <mailman.111.1698875448.3828.python-list@python.org>
References: 6LdqaeKq-OvcrilFYqqT5tc9LsvSqHRKDYMGaBXzlVzyOdX9Ae0Xp_ACtg=
@protonmail.com>
<6542be44.050a0220.e7b44.2143@mx.google.com>
<CAPTjJmp6nTDSApa4iYtDu72ZQTrR97wEchQ6fkJExktHZgLLvA@mail.gmail.com>
<6542c833.920a0220.6922f.1485@mx.google.com>
X-Trace: news.uni-berlin.de lJxSkisz7g12LFoHr6NpggDJMuUxHsD2n7yT3nSWemig==
Cancel-Lock: sha1:V+nUIHlZ5fxjGLYLbyn4uvpqwi8= sha256:PC8/hihiKIA+u/4z8N8pryBOjSNg/ioUZK8VLa2Y+IY=
Return-Path: <grant.b.edwards@gmail.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=gmail.com header.i=@gmail.com header.b=PHh7a9XZ;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.049
X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; '2023': 0.07; 'angelico':
0.09; 'regex': 0.09; 'from:addr:grant.b.edwards': 0.16;
'from:name:grant edwards': 0.16; 'wrote:': 0.16; 'grant': 0.17;
'addresses': 0.19; "aren't": 0.19; 'thu,': 0.19; 'to:addr:python-
list': 0.20; 'local': 0.27; 'chris': 0.28; 'header:User-Agent:1':
0.30; 'assume': 0.32; 'python-list': 0.32; 'unless': 0.32; 'but':
0.32; 'there': 0.33; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.35; 'possibly': 0.36; 'least': 0.39;
'valid': 0.39; 'match': 0.40; 'want': 0.40; "there's": 0.61;
'email': 0.63; 'guarantee': 0.76; 'domain': 0.77; 'forgot': 0.84;
'signs': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1698875444; x=1699480244; darn=python.org;
h=to:user-agent:references:subject:from:date:message-id:from:to:cc
:subject:date:message-id:reply-to;
bh=WRAuJTQvge6poG6G2SSat0ZJ62mRj1u8hIEpV8d36Xw=;
b=PHh7a9XZQhCRNWEsLzjejqY9kbDXvOG7/JPE1g7aWXs5EhZ9XjyQLEtvXfH6i3om5C
+i2D8IZ2WzXboNCeKF2+S1/zs7tcByxTFuKB9+9cDqSMW55Lqj8TL7B+6/UqYjYLpbfe
/zcn7YTORh7Vog1NUELmUbtK9YwViUY8Jq0KnXFq7EzjpvBgt6P8THwBU8/8oWpBkiOw
D0Z6r6y5je4O39vTWnOmpwQrFsDt8Gv1dGnMuh0Ea5yqpyt0Lk2a5HmaZGo8/PpKsV8j
XoN+M2F8RazbruRrtlkLbPjIi8mK0YXnEs8oucakTo2oA9rVWUsu+rhfFm6XKR6lEv+R
a0dw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1698875444; x=1699480244;
h=to:user-agent:references:subject:from:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=WRAuJTQvge6poG6G2SSat0ZJ62mRj1u8hIEpV8d36Xw=;
b=XyawFjgfdgNMrrYsxzEw3avULDL4IPourKZFbFsDHraZMTN0Ztw/zIjrbavfenbvGc
6BK4NJRa4WX8Y3Ax++SpyTBXetq53sFQu+KZN1n20dOmIsTzluUvXjkGDNDgdpP0Ai1y
49YCzVCWFMltcr1ozAjjM1aRRtWF2/EgIvinEAV8E6qdIiBBN5IWhqn92cJTlQ+cHKAp
hCtXufDGM8my1NofRgXiJbV9aNaie43enCwd3kOwMYXJXBmuVHlDEzvm841rBUroJxnK
KTpk8wng68/jYWW0cQnP5Bw3oTnpZ7qQv8opaxKDoE7xqhhx7m3bmAyJHhTHtfzjVzls
bD7w==
X-Gm-Message-State: AOJu0Yxd5omYJFASXi+C3pFPvZA3pBJDVXXZleYa4DA6+fJoRpKlPgfG
VFjrs2TUiysZUANKbb562/NNQRoeJ+A=
X-Google-Smtp-Source: AGHT+IEOZL+gOc4UQArYJpe0iv8NPbEotwZDZCJ3h3QT4cUD79/eQVFoY0uyrwtVzPj6D+hQrHqGyg==
X-Received: by 2002:a05:6e02:3707:b0:359:4382:fb2a with SMTP id
ck7-20020a056e02370700b003594382fb2amr3887441ilb.9.1698875443953;
Wed, 01 Nov 2023 14:50:43 -0700 (PDT)
User-Agent: slrn/1.0.3 (Linux)
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: <6542c833.920a0220.6922f.1485@mx.google.com>
X-Mailman-Original-References: 6LdqaeKq-OvcrilFYqqT5tc9LsvSqHRKDYMGaBXzlVzyOdX9Ae0Xp_ACtg=
@protonmail.com>
<6542be44.050a0220.e7b44.2143@mx.google.com>
<CAPTjJmp6nTDSApa4iYtDu72ZQTrR97wEchQ6fkJExktHZgLLvA@mail.gmail.com>
 by: Grant Edwards - Wed, 1 Nov 2023 21:50 UTC

On 2023-11-01, Chris Angelico via Python-list <python-list@python.org> wrote:
> On Thu, 2 Nov 2023 at 08:09, Grant Edwards via Python-list
><python-list@python.org> wrote:

>> Make sure it has an '@' in it. Possibly require at least one '.'
>> after the '@'.
>
> No guarantee that there'll be a dot after the at.

Ah, I forgot about defaulting to a local domain if one is
omitted. Will MTAs do that these days?

> (Technically there's no guarantee of an at sign either, but email
> addresses without at signs are local-only, so in many contexts, you
> can assume there needs to be an at.)
>
> So the regex to match all valid email addresses that aren't
> local-only is... drumroll please...
>
> r"@"

Unless you want to support UUCP or X400 addresses...

:)


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

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor