bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#51733: 27.1; Detect impossible email addresses better


From: Eli Zaretskii
Subject: bug#51733: 27.1; Detect impossible email addresses better
Date: Wed, 19 Jan 2022 14:59:40 +0200

> From: Michael Albinus <michael.albinus@gmx.de>
> Cc: Lars Ingebrigtsen <larsi@gnus.org>,  51733@debbugs.gnu.org
> Date: Wed, 19 Jan 2022 13:49:56 +0100
> 
> > Perhaps also Tramp (host names)?
> 
> --8<---------------cut here---------------start------------->8---
> (defconst tramp-host-regexp "[[:alnum:]_.%-]+"
>   "Regexp matching host names.")
> 
> ;; The following regexp is a bit sloppy.  But it shall serve our
> ;; purposes.  It covers also IPv4 mapped IPv6 addresses, like in
> ;; "::ffff:192.168.0.1".
> (defconst tramp-ipv6-regexp "\\(?:[[:alnum:]]*:\\)+[[:alnum:].]+"
>   "Regexp matching IPv6 addresses.")
> --8<---------------cut here---------------end--------------->8---
> 
> This should be sufficient, shouldn't it?

If this isn't too restrictive, sure.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]