From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86706 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Remove message-valid-fqdn-regexp? Date: Sat, 06 Feb 2016 16:09:45 +1100 Message-ID: <87bn7us9uu.fsf@gnus.org> References: <22wptj39o0.fsf@netnod.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454735445 22520 80.91.229.3 (6 Feb 2016 05:10:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Feb 2016 05:10:45 +0000 (UTC) Cc: ding@gnus.org To: Lars-Johan Liman Original-X-From: ding-owner+M34932@lists.math.uh.edu Sat Feb 06 06:10:33 2016 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aRv8i-0004km-KE for ding-account@gmane.org; Sat, 06 Feb 2016 06:10:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.85) (envelope-from ) id 1aRv8V-0001tG-L9; Fri, 05 Feb 2016 23:10:19 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1aRv8S-0001sZ-VY for ding@lists.math.uh.edu; Fri, 05 Feb 2016 23:10:17 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1aRv8Q-0007D9-2G for ding@lists.math.uh.edu; Fri, 05 Feb 2016 23:10:16 -0600 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1aRv8O-0000KZ-GU for ding@gnus.org; Sat, 06 Feb 2016 06:10:12 +0100 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aRv81-0006WS-I2; Sat, 06 Feb 2016 06:09:50 +0100 In-Reply-To: <22wptj39o0.fsf@netnod.se> (Lars-Johan Liman's message of "Sun, 15 Nov 2015 10:15:59 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) X-MailScanner-ID: 1aRv81-0006WS-I2 MailScanner-NULL-Check: 1455340191.533@rD3p88sihLrZpV4kZFpwOQ X-Spam-Status: No X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86706 Archived-At: Lars-Johan Liman writes: > Esteemed Sirs, > > Can I humbly suggest that the variable message-valid-fqdn-regexp and the > use thereof be removed from GNUS? Or possibly set to a default value of > ".*" (or similar) so that it's open but so that limits can be imposed by > the user, if he/she so wishes? > > In my view it is simply overtaken by events. Back in the day, the root > zone "moved" very slowly. New TLDs were introduced in singles per > decade. Having a watchdog in your mail reader made a bit of sense. > Today, we have several new TLDs every week. Any attempt at making > distributed _code_ keep up with such a rapidly moving target is simply > doomed. > > If I read things right, the current version of the variable in the GIT > repository lists 277 TLDs, not counting the two-letter ccTLDs. The > current root zone (serial no. 2015111500) has 859 ... and counting. Yeah, that doesn't seem all that useful. > At first thought, it may seem reasonable to replace the static list with > a dynamic DNS lookup when the data is needed, but I would not recommend > that, as it's far from certain that you're connected to the Internet > when your submitting your message for delivery*. Doing the lookup will > in that case lead to long and bothersome timeouts. > > Removing or totally opening it up are the only viable alternatives to > me. Possibly, one could envisage retaining a generic syntax checker, but > that is only practical if done _after_ any IDN** translation from u-label > to a-label. Well, since Emacs is also a web browser, it has to have a way to keep track of where it's valid to set cookies. (foo.co.uk isn't allowed to set cookies for co.uk.) So Emacs updates its version of https://publicsuffix.org/list/public_suffix_list.dat for every release. So Emacs should already know about all these domains without maintaining a separate variable in message.el. I think I'll just adjust the code to query that data instead. That should work, right? (Although it would always be somewhat outdated.) > ** I don't know if GNUS supports IDNs, but if not, it hopefully will in > the future. It does now. I think support was added a few months back. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no