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 eGuFJEi1nWAomwAAgWs5BA (envelope-from ) for ; Fri, 14 May 2021 01:24:56 +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 ANDEH0i1nWBtIgAA1q6Kng (envelope-from ) for ; Thu, 13 May 2021 23:24:56 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (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 1C00E16F0D for ; Fri, 14 May 2021 01:24:55 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 0F30F27185; Thu, 13 May 2021 19:24:51 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id B21EC20017 for ; Thu, 13 May 2021 19:24:48 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 2DB8460018; Thu, 13 May 2021 19:24:47 -0400 (EDT) Received: (nullmailer pid 1727402 invoked by uid 1000); Thu, 13 May 2021 23:24:45 -0000 From: David Bremner To: "Tory S. Anderson" Subject: Re: Emacs: prevent notmuch from tampering with message headers & settings In-Reply-To: <874kf6vd5x.fsf@toryanderson.com> References: <87bl9hkv3r.fsf@byu.edu> <87r1iaeud5.fsf@tethera.net> <874kf6vd5x.fsf@toryanderson.com> Date: Thu, 13 May 2021 20:24:45 -0300 Message-ID: <87a6oydxoi.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: RVMMUOSSE263QZYZUON3DU44A5EWQAP5 X-Message-ID-Hash: RVMMUOSSE263QZYZUON3DU44A5EWQAP5 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; 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=1620948295; 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; bh=aFheKRc1ELPjWGYWs2CaXCNl1kAeMb626esCa55cw3k=; b=cetILn2iYDfVqUxc0CzZ0cjye68UxloMPY2xmqjCT85LdaY+DOa+zu8z3EXm9hhgB+Kji9 rYwGiYJbhzIOnSvaSqWU3oSiqp4sAbrzlPqYj0qCD39vJYPGzate5zeAeN+zuw9Od1qAA5 ZIkzN8NzKvPCB0QSbp+1d6g0WCp29eBhHCd3yXE1RgdEAQo1Ad0QkuEaXoZS/eNoy1GPkA JFTTlD/hy1Z2IbL4VBNgJELXtOP9LRFH2Jgja9/4Hi77eFxIce9HBUDl3x7fd8iaooMkcY Gp2NpYA/UP27R1NYu44yZHRmJrynkvUgN3H5UzNLBZ8cJ/r1vVU/HB8E8APEhg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620948295; a=rsa-sha256; cv=none; b=G/cpPlbNXxH+Dw31AIohMgV9AUw0axNBcp/wbv/9CoKGiny2PfzbKvZxv+xlFPfHl9ed5A giNv8WaXDN1dhzthBgI4TkSXrJKCGeC6UTP+aqPomb2dFMrndsqCQiG8fikq9l6VI1x2/j S6T5RyQV6xfQM1eAyQt8UeoAJy70Zi+qCPD9wHPtJkZND0PCWolZgYb/3cYZQHv5ip6dFL zud41y2W1rDNF5JmBuLavFQR1fN+RF7/7HPSoDIKEuBmon4VR9fDDI6Pk9rYrzue1CmBaA wDlnCxqu7VK9ySQxMBiPFyhF0J77ESDRL5/uqQbCsYsveY2ZqzA3uIaHDoOqMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.07 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 1C00E16F0D X-Spam-Score: -2.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9d1R1KK2rxlQ "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)