From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#18513: 24.3; message-mode sends unencrypted on error Date: Wed, 25 Sep 2019 15:05:06 +0200 Message-ID: <87y2ycv859.fsf@gnus.org> References: <878ulebz1x.fsf@maritornes.cs.unb.ca> <87zjdid6ny.fsf-ueno@gnu.org> <87k34mei9j.fsf@maritornes.cs.unb.ca> <87muev8cc3.fsf@gnus.org> <877e5zjjdh.fsf@tethera.net> <87ftkn6rv5.fsf@gnus.org> <87lfuem0j5.fsf@fifthhorseman.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="244522"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: David Bremner , 18513@debbugs.gnu.org, Daiki Ueno To: Daniel Kahn Gillmor Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 25 15:42:05 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iD7YS-0011V0-AZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Sep 2019 15:42:04 +0200 Original-Received: from localhost ([::1]:51610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iD7YR-0007s0-0R for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Sep 2019 09:42:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60281) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iD6zd-0003kL-1c for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2019 09:06:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iD6zb-0007ob-2h for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2019 09:06:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60429) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iD6zZ-0007oD-Qb for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2019 09:06:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iD6zZ-000392-K4 for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2019 09:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Sep 2019 13:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18513 X-GNU-PR-Package: emacs Original-Received: via spool by 18513-submit@debbugs.gnu.org id=B18513.156941671612031 (code B ref 18513); Wed, 25 Sep 2019 13:06:01 +0000 Original-Received: (at 18513) by debbugs.gnu.org; 25 Sep 2019 13:05:16 +0000 Original-Received: from localhost ([127.0.0.1]:41017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iD6yp-00037y-V3 for submit@debbugs.gnu.org; Wed, 25 Sep 2019 09:05:16 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:34250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iD6yo-00037p-4R for 18513@debbugs.gnu.org; Wed, 25 Sep 2019 09:05:14 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iD6yh-0002gI-BA; Wed, 25 Sep 2019 15:05:12 +0200 In-Reply-To: <87lfuem0j5.fsf@fifthhorseman.net> (Daniel Kahn Gillmor's message of "Tue, 24 Sep 2019 12:49:50 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:167163 Archived-At: Daniel Kahn Gillmor writes: >> It's not difficult to bug out on <#unknown>, but since Message mode >> buffers mostly free text, doing so would lead to people having their >> emails fail if they were to type such a thing by hand. MML is only >> recognised if it's one of the keywords it er recognises. > > It seems to me that there's a sensible balance to be struck, where MML > can carve out a recognizable, predictable space, while still not causing > unncessary failures. > > For example, it could try to interpret every sequence that starts with > the two characters U+003C LESS-THAN SIGN, U+0023 NUMBER, and ends with > U+003E GREATER-THAN SIGN, if those characters are all on a single > line. (does mml handle tags split across multiple lines?) But that would trigger on this <#no-mml tag> and would annoy people. > I do note that mml-mode itself offers some help, because it seems to > apply a different textual style to strings that mml will act on. As > long as the user can visually distinguish between these textual styles, > and assuming that the matching rules in mml-mode are precisely aligned > with the mml-based transformation that happens just before a buffer is > sent, then the user has some amount of feedback -- but i'm not sure that > both of those assumptions holds in a buffer during arbitrary editing. > Does it? I think so. But perhaps there should be a secondary level of testing for encryption-related commands. That is, if you've typed `C-c C-m c p' (for instance), and then the MML parser doesn't find any encryption tags in the buffer, then it could ask something like "You indicated that you wanted this to be encrypted, but it won't be; send anyway?" I mean, you may have used that command and then removed the "secure" tag because you changed your mind, so completely refusing to send probably isn't a good idea. This warning stuff could be done via a buffer-local variable, I guess... Although that wouldn't survive a round trip to the drafts group. Perhaps a header? User-Wants-Encryption: yes ? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no