From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51733: 27.1; Detect impossible email addresses better Date: Wed, 19 Jan 2022 15:01:15 +0200 Message-ID: <83sftjswv8.fsf@gnu.org> References: <87czn8etuz.7.fsf@jidanni.org> <49EACC4C-E21E-4123-A3D2-901958CF7DC4@gnu.org> <87mtju76pp.fsf@gnus.org> <83bl0awbqq.fsf@gnu.org> <87sftm5lxc.fsf@gnus.org> <835yqiwa87.fsf@gnu.org> <87ee565l4d.fsf@gnus.org> <875yqi5kk7.fsf@gnus.org> <83zgnuuucu.fsf@gnu.org> <83r196uqni.fsf@gnu.org> <87sftm3ye5.fsf@gnus.org> <87iluh4ety.fsf@gnus.org> <87ee55474p.fsf@gnus.org> <87a6ft46mr.fsf@gnus.org> <874k6146ay.fsf@gnus.org> <87zgnt2qz9.fsf@gnus.org> <87v8yh2ot4.fsf@gnus.org> <87r1952omd.fsf@gnus.org> <831r14vq70.fsf@gnu.org> <8735lkdqll.fsf@gnus.org> <834k60t03u.fsf@gnu.org> <87h79zdgxe.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3618"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51733@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 19 15:04:30 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nABZd-0000dY-Bw for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Jan 2022 15:04:29 +0100 Original-Received: from localhost ([::1]:51152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nABZc-0003yf-Bu for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Jan 2022 09:04:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAAcB-0000hB-LM for bug-gnu-emacs@gnu.org; Wed, 19 Jan 2022 08:03:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59717) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nAAcA-0002Lr-GR for bug-gnu-emacs@gnu.org; Wed, 19 Jan 2022 08:03:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nAAcA-0006mA-Af; Wed, 19 Jan 2022 08:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 19 Jan 2022 13:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51733 X-GNU-PR-Package: emacs,gnus Original-Received: via spool by 51733-submit@debbugs.gnu.org id=B51733.164259732625966 (code B ref 51733); Wed, 19 Jan 2022 13:03:02 +0000 Original-Received: (at 51733) by debbugs.gnu.org; 19 Jan 2022 13:02:06 +0000 Original-Received: from localhost ([127.0.0.1]:52619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAAbG-0006kj-DT for submit@debbugs.gnu.org; Wed, 19 Jan 2022 08:02:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAAbF-0006k8-BA for 51733@debbugs.gnu.org; Wed, 19 Jan 2022 08:02:05 -0500 Original-Received: from [2001:470:142:3::e] (port=35442 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAAb7-0001ri-92; Wed, 19 Jan 2022 08:01:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Rm8E/TLmykaPOSvQSF8/QXCeMSD2XxPxFYGyefMKARk=; b=dYvORZ8HZMKGDhvK6Igb oc4IbmzYRNIQ4zuz+NJdRXLdkAsF9XuYyB2WcELwetR7tA+oM2d5mrq54HemAA2imxocHs1H4GU9g 4+L2Jojy9Kz9k4Zv93fF/hGLA2v6hH4aHO7t+XXkFsXU9qAcgqNAy1645YlkqNIdIJAL9DdJtnqGP GUH3Ox50+mRxSE3LJA7UtQoQVAqdmhHMLayZ35cPlWTUn9WA0vQIMWxBJnpQ6zB405JFeM9zMgxiP 8rEQVnpT+heVRo1d0DJn7+WvNE0YBBrd9he4vLN0kc4svMOgM8zqcB1oJ5dJJrqAbspov9Eex2iJf meD5PaFZzJZDvQ==; Original-Received: from [87.69.77.57] (port=1690 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAAaV-0004Js-GS; Wed, 19 Jan 2022 08:01:42 -0500 In-Reply-To: <87h79zdgxe.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 19 Jan 2022 13:54:37 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:224586 Archived-At: > From: Lars Ingebrigtsen > Cc: 51733@debbugs.gnu.org > Date: Wed, 19 Jan 2022 13:54:37 +0100 > > Eli Zaretskii writes: > > > This is unfortunate. It means, for example, that a simple lazy > > discovery of suspicious addresses by scanning the email reading buffer > > with regular expressions will not work, and the feature must instead > > scan the original mbox buffer. > > There's no scanning -- rmail displays the From header, right? So it > does decoding before displaying the header. It has to do the textsec > stuff first, too. Not if textsec is optional, it doesn't. And I think your mental model of how Rmail presents the email in the reading buffer is not accurate. > > Why cannot we lift this restriction? mail-header-parse-address is not > > the only way to parse email addresses. Or maybe we could encode the > > email address if the original one causes an error? > > There is no reliable way to parse a decoded mail address, and since this > is a security thing, we don't want to do DWIM and guesses (which is what > you have to do when composing a valid email address from a string like > "Fóo, Jr. "). I think Robert just suggested a way?