From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +JOvFJwapWB4NQEAgWs5BA (envelope-from ) for ; Wed, 19 May 2021 16:03:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 0C1qEJwapWB/PwAA1q6Kng (envelope-from ) for ; Wed, 19 May 2021 14:03:08 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 8CC4F80AC for ; Wed, 19 May 2021 16:03:07 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 04A582AA5B; Wed, 19 May 2021 10:03:02 -0400 (EDT) X-Greylist: delayed 1216 seconds by postgrey-1.36 at nmbug; Wed, 19 May 2021 10:03:00 EDT Received: from gateway34.websitewelcome.com (gateway34.websitewelcome.com [192.185.148.109]) by mail.notmuchmail.org (Postfix) with ESMTPS id 3B8632904F for ; Wed, 19 May 2021 10:03:00 -0400 (EDT) Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway34.websitewelcome.com (Postfix) with ESMTP id AFF932A03CA for ; Wed, 19 May 2021 08:42:42 -0500 (CDT) Received: from box2268.bluehost.com ([50.87.192.155]) by cmsmtp with SMTP id jMTCljaEbAEP6jMTClKXl5; Wed, 19 May 2021 08:42:42 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=toryanderson.com; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:Content-Transfer-Encoding:References:Subject:Cc:To:From: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=d7ooIfugRv3XLRoYu/SjOBjbqBecPR6MjFhgGE6oWuE=; b=laDlJGe6J9QgWWswA40nCg2sOz cHOR4CnaOK95KsN4KlZjEo3Tlw/zNGuv5bYoX9R4oPnhQUnnYCUzeFhasktsF+xhcf/AulGU+uVXJ 5qvJ/vXAeVUrIq4Tr6PJtCgDCE1O68cUQQl/X/njUVi6Ua8LyxPeEOBdyXkkG4iBWT7w=; Received: from c-98-33-162-63.hsd1.ut.comcast.net ([98.33.162.63]:46689 helo=localhost.localdomain) by box2268.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ljMTB-001LgU-Iu; Wed, 19 May 2021 07:42:41 -0600 From: "Tory S. Anderson" To: David Bremner Subject: Re: Emacs: prevent notmuch from tampering with message headers & settings References: <87bl9hkv3r.fsf@byu.edu> <87r1iaeud5.fsf@tethera.net> <874kf6vd5x.fsf@toryanderson.com> <87a6oydxoi.fsf@tethera.net> Date: Wed, 19 May 2021 07:42:40 -0600 In-Reply-To: <87a6oydxoi.fsf@tethera.net> (David Bremner's message of "Thu, 13 May 2021 20:24:45 -0300") Message-ID: <87o8d6hmb3.fsf@toryanderson.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box2268.bluehost.com X-AntiAbuse: Original Domain - notmuchmail.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - toryanderson.com X-BWhitelist: no X-Source-IP: 98.33.162.63 X-Source-L: No X-Exim-ID: 1ljMTB-001LgU-Iu X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: c-98-33-162-63.hsd1.ut.comcast.net (localhost.localdomain) [98.33.162.63]:46689 X-Source-Auth: webdev@toryanderson.com X-Email-Count: 2 X-Source-Cap: dG9yeWFuZGU7dG9yeWFuZGU7Ym94MjI2OC5ibHVlaG9zdC5jb20= X-Local-Domain: yes Message-ID-Hash: NCJD4LOVLD5Z57GLQH3AHWZH5RK2IH4L X-Message-ID-Hash: NCJD4LOVLD5Z57GLQH3AHWZH5RK2IH4L X-MailFrom: webdev@toryanderson.com 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; suspicious-header CC: notmuch@notmuchmail.org, David Edmondson X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621432987; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc: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-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ckFIoUj3CKYVrGIB4rB6kWdKpxg85A1/RgMn2fclYLo=; b=Fbk4u3KyujaxA1eRSj29JBgcnHuo6n2pusmaZeqMgaqUGPpn0ZOzEA7baJb+Vgc3OU0O5C N8bcyLL/BPy16dsCCbt82zJ40BevsQFhum49NT8hrg0DIy2z+uaAcNdQ5CHy9pg4XHvZWo EG8/6wkHzT6fWo7VpumR9iDASt88t7+gTOynZLaf/DZppV4SJNLc662X1CPIimJoL/MVd8 gLl/PHxqEO1Pr7CV6o3CVaojp6T4XtvzCDbhhZDsMxmEUFpE64AaPgCyGd79DsWTAjax1l R6eTcMEyxHWNTHGhh4EAqmGAnIPVQ0ZOKvtZXeBT8P0ov7ga6KtJRWPnR63dLw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621432987; a=rsa-sha256; cv=none; b=MExu2arepEuOnVj8bTLPoQmq2a/LQEe7HGs9uOJPDsXopPH1m36x5SvKbmSw8PSjKSeDnm Xn20OYoQz1MAltA/VHO0KGMhP3CdY1bxtVz2QQPeLd51NeGyC43x9f6JmJwatK64REcz2o /4YwSktLwpR+EFZNddGXlgS0rnPM7veTK+KCg8JlsRKzWjGe8GbdBkpxJE9LkS5ZgJ/bSw Aeu/XjMa11/jvJMTfvN1S2FSwlbxgQ+b6V2kku3MQEcEM2iSVl60sLDpoZEWasDVE5/M3N EMH2ByC81N6OYjDfP2bEi9fxkALQ+kEJU5Kt1RqMyS6uT/9NYF+tTc8KNiBwOw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=toryanderson.com header.s=default header.b=laDlJGe6; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.07 Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=toryanderson.com header.s=default header.b=laDlJGe6; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 8CC4F80AC X-Spam-Score: -2.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: GuXgh59jwPcy I've made a branch with a change that should avoid ruining existing behavior for anyone not trying to preserve their mail-user-agent. How can I submit this thing? David Bremner writes: > "Tory S. Anderson" writes: > >> I send mail with either global C-x m (compose-mail) or from my gnus >> buffer when I reply to a message. In both cases, if I happen to have >> visited a notmuch search result previously, it has changed my headers >> and completion methods. Yeah, over-writing mail-user-agent seems to be >> the case -- I see that is exactly what has happened. Any idea how can >> I stop it? >> >> - Tory > > You can try adding something like > > (eval-after-load 'notmuch > (lambda () (setq mail-user-agent 'message-user-agent))) > > to your emacs startup file (e.g. .emacs.d/init.el) >