From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4ea1::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sC00AvhRyGGpWgAAgWs5BA (envelope-from ) for ; Sun, 26 Dec 2021 12:28:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +EilN/dRyGHGVgEAG6o9tA (envelope-from ) for ; Sun, 26 Dec 2021 12:28:55 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B226D1B76A for ; Sun, 26 Dec 2021 12:28:55 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 45BDB5F723; Sun, 26 Dec 2021 11:28:52 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 2025A5F5EE for ; Sun, 26 Dec 2021 11:28:50 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 30D435FC42; Sun, 26 Dec 2021 06:28:49 -0500 (EST) Received: (nullmailer pid 1958647 invoked by uid 1000); Sun, 26 Dec 2021 11:28:48 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: Re: [Vagrant Cascadian] Bug#759646: notmuch-emacs: switching mode= to invalid value sends unencrypted mail In-Reply-To: <87lhq7npcw.fsf@maritornes.cs.unb.ca> References: <87lhq7npcw.fsf@maritornes.cs.unb.ca> Date: Sun, 26 Dec 2021 07:28:48 -0400 Message-ID: <87pmpjmwpb.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 2SA3UM5AJV3PVMXBSTBAIFL3ZG5MGYY4 X-Message-ID-Hash: 2SA3UM5AJV3PVMXBSTBAIFL3ZG5MGYY4 X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640518135; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=eL7IwXLlPL1az0Zddb7kShDZI2y2SrLkaOMqcxUQmY8=; b=Z1ogDERGXORQdPJVmgz07vDkrDnGJ8wv/cCjxQlLMgPjR2yvgCaZOHOL+uYvc9SzJofRqI G1BR4WOmOUbIrOU+72AODjuLm40kv/IMCjUAa4IdAL3LzE6cV5DtupOXkSXMpFcEXw/+jF B5fQI76d63iS6PYLO29HK4bKHCBq5o3qLfV1PX8U77Ggqe/itIHyo+PFc6W6aUyOf+gpR8 1I/3L5R3MltBgTLtLSTwDe8tEJ/wlmaXUVMppG9V6AFQr3HCxmpHs4xzbYUA0xydmTkhIl +qOBG4SFBh2TYmgutGHOC/49CwqubVZusvEIA6s4JPhx94ztRwi+PlwXWBQ0Lw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640518135; a=rsa-sha256; cv=none; b=HVLZn15/uSX4u1De88OzAQZncd01+twtlfOI9LnTBtnSRZDi1eAS9IcAjyOy1Uo+L8J0KL 09N2TjR+bF9ed/QkhSCxjghVfKD0XB7HTDOSX1MjB/+2bjUsXBSj6W2XQkbITRvfANjfjq J7pSFwAyWDb+THGwopSU3zbs0mropsALMJX2oB5WhH9K3WAz/dQRCXneBHyua4glyaTXiZ vV1n23pzgubxSPjtDdjMd150bn5HNenNQvi8dNQRxnJuYzu/IXZx5cfrv4hnRtSabyQ2bK WAyilVxM9CsZRaHf1tsYc1Y7uIWe81IlXhF+hPebIDOUJLbl4AKtBdrahJodsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.18 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: B226D1B76A X-Spam-Score: -2.18 X-Migadu-Scanner: scn1.migadu.com X-TUID: G2P36hcuKrhB David Bremner writes: > > i.e. #secure method=pgpmime mode=signinvalidencrypt will end up > sending an encrypted message (with the <>, of course). > > It seems like it should error out if the mode= is set to an invalid or > unknown value, rather than sending mail in the clear. > > I've got this set up in ~/.emacs, not sure what all else might be coming > into play: > > '(message-setup-hook (quote (mml-secure-message-sign))) > '(notmuch-crypto-process-mime t) > This bug is marked fixed in emacs, so I guess we can mark it fixed in nmbug as well. For a more detailed discussion see http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18513 d