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 yP10Ka86vmCEdQEAgWs5BA (envelope-from ) for ; Mon, 07 Jun 2021 17:26:39 +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 kAuuJK86vmB3DAAAbx9fmQ (envelope-from ) for ; Mon, 07 Jun 2021 15:26:39 +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 3B78923E81 for ; Mon, 7 Jun 2021 17:26:39 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A8B6729C43; Mon, 7 Jun 2021 11:26:33 -0400 (EDT) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 13DEA27DEE for ; Mon, 7 Jun 2021 11:26:32 -0400 (EDT) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4DF6B1B00334; Mon, 7 Jun 2021 18:26:29 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1623079589; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VHr0evmp0vKbkCkQcUuo8EBVGZBsSHerWmcbAw+mmcM=; b=ceOnyDFWyNMZNIDAPgy6ZS+qdjrk3tcePjraBbAdWL1dutBlUHgLGlU9lbW9YKiNkwsLbm 4VV58Fll6GJwKirUSk7YdSduUqHW3QZA93GDupG9aBhL8os6tVPGjusmaffytmwFhyglZO OJDaufGLejcEdQ/CGif+Vk7SCpVEY7qxNmZntdNXVarh7GEecmaMQqEW3/OTeruQp5w1hL ztH8iKKqACVnymJhkDnTK7tSNRXZ3kAJJgHInJK6RYkZCHiX76wfiSlWXMjmex0c/VnORi sW0Ei9SZCKerdnhJrbM++KhmojF3mXBVx0n27wmqqz/66TdyX1Z7JVyRF0lOXw== From: Tomi Ollila To: David Bremner , David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: drop setting mail-user-agent, and document how to set it In-Reply-To: <20210604231613.1455572-1-david@tethera.net> References: <20210513232807.1727569-1-david@tethera.net> <20210604231613.1455572-1-david@tethera.net> User-Agent: Notmuch/0.32+21~gfdddd4c (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1623079589; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VHr0evmp0vKbkCkQcUuo8EBVGZBsSHerWmcbAw+mmcM=; b=TQQuiqXikPvgaESJEPTu+h6KDRjmip99tuvbxIltkVgvsHZ6ftaNk9ubkx6KAUYPhllXv6 W9VkFL4cw7JgHZSEALt5IwXJgYsmMQsCQUjDPF/doXvRgOe8Nh8lBrLCM0qIwteN8sg6Uj MYQ7qN+Wb06h6ERXvO3fXSLDGRF8u9avW4xA+ZUbg77mM/6vI6orsnyLXDkXG46kBddzqc BUo2b8m7tSFn8a3T26KXteqewCbP8iy8OIRO/imiqRvzsk/el66MpKEu7QrYBhkTkpL+Wq R+MaoXV48/Nmlur0PVEUGAt1H1/H1rwY+IjC1HQL2Glp6uxBDHfoUC8fVapawA== ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1623079589; a=rsa-sha256; cv=none; b=FFe5cSfrsfhKdLORZzwjW/YYZnNTn0fetZgWX5DtMjFyU3VCrRn/8n0K80ZfV/KtL5TBIT EcJr+NpVZCEnvVVRgOGsLn5bUv2aLGKI1nRxclp8+ogKDyjiiqgYXFL0ql7gLqn5+8gPEH OBeW6ohXc/RomU+zA7Sm06je+ZZz3jv4IJfpf7rIGEWB5rGIheob5rmS/lI+qQQPqGbfE8 NCuTcd3SSg7FyAXnyF88BJqbB3NR4sk1ok8NEFj4M1lE6PrqmsFRlUzUPifwGkk65puKAA L8F3oESjwpN+4p2SkWYO9nsVYpKik3NA3J70grd2ojxDCirGZS5tB5uvhFDMVw== Message-ID-Hash: DZGI3ZJ6X3BXBZJID3PKJYK4LS7YCHDK X-Message-ID-Hash: DZGI3ZJ6X3BXBZJID3PKJYK4LS7YCHDK X-MailFrom: tomi.ollila@iki.fi 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623079599; 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:dkim-signature; bh=A6K9WNYBEd+Kj2KZnsrrxu/ScahpPwfmTbPX43FYj2w=; b=szjpnK21tKFpkzqxwgLL+hqqd6MG9yaGwBZb1C1xZfxDvZjrmBEgda7hAYVAxbmxHNBvUw muJG44y3jnkdamkbLaMiyXTEWQgMm2HCMocTVjS6GK/DTv8J5TP+U/ca/uc44K3mYuUak7 +nW5G3+8JCnaIb76CeMHF4CUgJZl4+Urwcult5cg/8SPl+0i/7NqZDDHDfOSFZb5TyUl3C ucfunxZ1qYLvXj8yqj0ev5xx8xI5JDmMbraXSv/bFpcpDHC2LhiSIwfnCqXVmT+qvqIHwM GOibi9Lm0KoVNxj0CGdL9SmhXvyCEw3Qvwho6rPPhX9PXpEJkJ/mdXDbXm2fxA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1623079599; a=rsa-sha256; cv=fail; b=Y54oNN/I3ucbu42xaTiPugL/BjS5rWqnPlyCxqThGyKA7dpwQN1iPsm1LZ3j+XHl75NZZe gGap7parjR1ZQs2egqd6zm8WDcJXi+zs94VKuy3KbZ8GMRQ6KFkPwMvWKUPos/xJN4On84 X1eo8019fPGN44R8gEvbaEp2jcsp5QonKJThw1xmQOnbK4LTpTe+7CNH96tz6bAkXLstag ukhdqD5wvBpVm6lwWhfTq+m82T4VYJUR7qlBxlGnaGBdwuiXApTgTzfjIMBIMctd4reaMS fv9lDUBluJ7ZDACLp7rjWmNuRwCAnIfDhM/zqVgUb6JKteLIrJMrkRrTi0pRwQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=ceOnyDFW; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); 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-Spam-Score: 0.98 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=ceOnyDFW; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); 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: 3B78923E81 X-Spam-Score: 0.98 X-Migadu-Scanner: scn0.migadu.com X-TUID: S3/Vj/huycPZ On Fri, Jun 04 2021, David Bremner wrote: > 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. LGTM. Tomi > > [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 > _______________________________________________ > notmuch mailing list -- notmuch@notmuchmail.org > To unsubscribe send an email to notmuch-leave@notmuchmail.org