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:25:12 +0200 Message-ID: <83lezbsvrb.fsf@gnu.org> References: <87czn8etuz.7.fsf@jidanni.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> <83sftjswv8.fsf@gnu.org> <87zgnrc1sf.fsf@gnus.org> <83o847swdk.fsf@gnu.org> <87r193c1bz.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12368"; 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 14:35:31 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 1nAB7a-00031Z-PD for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Jan 2022 14:35:30 +0100 Original-Received: from localhost ([::1]:48408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nAB7Z-0005n8-R0 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Jan 2022 08:35:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAAyQ-0005ed-Pc for bug-gnu-emacs@gnu.org; Wed, 19 Jan 2022 08:26:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nAAyQ-0002xY-2K for bug-gnu-emacs@gnu.org; Wed, 19 Jan 2022 08:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nAAyP-0007SQ-RQ; Wed, 19 Jan 2022 08:26:01 -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:26:01 +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.164259874828636 (code B ref 51733); Wed, 19 Jan 2022 13:26:01 +0000 Original-Received: (at 51733) by debbugs.gnu.org; 19 Jan 2022 13:25:48 +0000 Original-Received: from localhost ([127.0.0.1]:52694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAAyC-0007Rn-52 for submit@debbugs.gnu.org; Wed, 19 Jan 2022 08:25:48 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAAyA-0007RQ-8t for 51733@debbugs.gnu.org; Wed, 19 Jan 2022 08:25:46 -0500 Original-Received: from [2001:470:142:3::e] (port=36408 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 1nAAy5-0002pI-1m; Wed, 19 Jan 2022 08:25:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=pzT+atY8Q3DIwY+GptLWAM0d0dNXeWCBYKzVbs9AKvg=; b=Xt3aeaRgscJy 86cdQr2zSstFBR21lxwi5RJl18niXGnKaJjjGwwe6alsN6VWfDv560qSKm6V8Xu4Na7JCgIETpbSp oBRaWIr2Bd6oqw04D7an0aGKL31ACgb5sK1SLF88Ph3hOFrtalQ4f+rE46nam8x92bOzHdzln8qDz KnnzTLCEy2ajxui/SaquFQ18ar/Lj8JtwN1j+L9kW59uV7Zxy/l9mFVJJMqk5eClaPavqnnQkRWHK Ytutq8DAKTm0lfoe5EqFo4HtGKw+mNlz4yQiTWD0mASv0BMJj4EiuKI/C1xtDNzPstdpULgNiFR2x gI42jhLOmb+Wbs/0zeYHLQ==; Original-Received: from [87.69.77.57] (port=3199 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 1nAAxf-0002d0-Mh; Wed, 19 Jan 2022 08:25:27 -0500 In-Reply-To: <87r193c1bz.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 19 Jan 2022 14:16:48 +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:224574 Archived-At: > From: Lars Ingebrigtsen > Cc: 51733@debbugs.gnu.org > Date: Wed, 19 Jan 2022 14:16:48 +0100 > > Eli Zaretskii writes: > > > But From is not the only place where a suspicious address could hide. > > It could also be in the body, or in the quotation parts. We cannot > > rely on header decoding alone to do this job well. > > The scope of the relevant implemented functions are to determine if the > (on-wire) mail headers are suspicious or not, and do so reliably. We > can add a slew of other functions for other types of DWIM > suspiciousness, of course, but that's outside the remit. I disagree with this narrow definition of the scope. textsec is more general, and should not limit itself to specific wire protocols. I'm not asking to _replace_ RFC2047 support, I'm saying that we should also support email addresses that were already decoded, for the use cases where that could be more convenient or where the wire level is unavailable. Why would you object to extending these functions so that they could support decoded email addresses? What harm could that possibly do?