From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YiXMB1C0umCbZwEAgWs5BA (envelope-from ) for ; Sat, 05 Jun 2021 01:16:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aAm5AlC0umAOQAAAbx9fmQ (envelope-from ) for ; Fri, 04 Jun 2021 23:16:32 +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 2362B24EDE for ; Sat, 5 Jun 2021 01:16:31 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 70B952B248; Fri, 4 Jun 2021 19:16:23 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 841C82B244 for ; Fri, 4 Jun 2021 19:16:20 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id CFC875FD25; Fri, 4 Jun 2021 19:16:18 -0400 (EDT) Received: (nullmailer pid 1455620 invoked by uid 1000); Fri, 04 Jun 2021 23:16:16 -0000 From: David Bremner To: David Bremner , notmuch@notmuchmail.org Subject: [PATCH] emacs: drop setting mail-user-agent, and document how to set it Date: Fri, 4 Jun 2021 20:16:13 -0300 Message-Id: <20210604231613.1455572-1-david@tethera.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210513232807.1727569-1-david@tethera.net> References: <20210513232807.1727569-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: PI7R3EQZT5R2VYXYGFGMAIIHG3TG25IW X-Message-ID-Hash: PI7R3EQZT5R2VYXYGFGMAIIHG3TG25IW X-MailFrom: bremner@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 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=1622848591; 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-unsubscribe:list-subscribe:list-post; bh=M8WaIqOJ2UQLJ9WQulEMAaj6mbPijAgEpnroNPECFm4=; b=l5LLUYlXi/IQ4mlM3V1d4+s6T6SHFKTMQIJxNrODUCfO7ri9+YjJ33WhbfFD911AdSqnCu FNhH64Cd/fsxSo15XXAjH8IlQ4ZmXVRVflY25T7+Yn3TR91i7vXoS8aIhI6BNmXOZx/Fkt TVNiDBdYrkLllc/1M2qVuhVW7a2bp+qjTv5QiYGZpsTHiaatjPX7UP45Uplg+MQINqAwIx //keyAgPZeOug84D8YsSB9NVJktiUpRuRhewvLNB94RvUMHvuDtcaCABS4Ye4ZIS4qVDYz ZyKTme/MfS8aNDxMCa3sydGuU+IzVvziYietT35zeq/9wgRzsuq9nB1owYDA1w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622848591; a=rsa-sha256; cv=none; b=srYMtpuSfLKL2cqGjR7fvmDfASycrZO0UuK5MI+SYUFsQW+ZSdhPSWAykyQ/2AFu338ePO 6hvGs35UsGrQQ2f6eP3O3zQWzKZGCQ4shx4n7ir1o/hK1tskAxl4U0vUykgU7k/GVK6CRd D0paWOCMz/KN1T1nstm7ETnf8rCXfs90Yb2noRP7ATJOYxn+3wnhDFiGZYXEWTlnQr/vZj 3anaZTzDjjk+hEM8DKQ0Qi74pf+wTKIpYdExZ3rhppEj8MVjJszP1SSeji9zL/ysEDrZA1 7S9g3u5gNfaSTXMra1HN8jXQ/2ls4TqswNHxnr0wOolMv9Ij0b38R3EuRF+0ag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -1.04 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 2362B24EDE X-Spam-Score: -1.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: ym1HQIqhsWgJ After some discussion [1], I decided it is better to make notmuch users who rely on this behaviour customize mail-user-agent. This is consistent with the behaviour of other emacs mail packages. [1]: id:87k0nuhfrk.fsf@toryanderson.com --- NEWS | 7 +++++++ doc/notmuch-emacs.rst | 10 ++++++++++ emacs/notmuch.el | 2 -- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 35b57cef..538ec168 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,13 @@ Notmuch 0.33 (UNRELEASED) ========================= +Emacs +----- + +`notmuch` no longer sets `mail-user-agent` on load. To restore the +previous behaviour of using notmuch to send mail by default, customize +`mail-user-agent` to `notmuch-user-agent`. + Vim --- diff --git a/doc/notmuch-emacs.rst b/doc/notmuch-emacs.rst index d9b497a3..7772871b 100644 --- a/doc/notmuch-emacs.rst +++ b/doc/notmuch-emacs.rst @@ -366,6 +366,16 @@ Importing Mail :index:`notmuch-poll-script` |docstring::notmuch-poll-script| +Sending Mail +------------ + +:index:`mail-user-agent` + + Emacs consults the variable :ref:`mail-user-agent` to choose a mail + sending package for commands like :ref:`report-emacs-bug` and + :ref:`compose-mail`. To use ``notmuch`` for this, customize this + variable to the symbol :ref:`notmuch-user-agent`. + Init File --------- diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 6d37c623..3e2713e2 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -1162,8 +1162,6 @@ Point should be at the beginning of the line." ;;; _ -(setq mail-user-agent 'notmuch-user-agent) - (provide 'notmuch) ;; After provide to avoid loops if notmuch was require'd via notmuch-init-file. -- 2.30.2