From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CPgCAgceuWCueAEAgWs5BA (envelope-from ) for ; Thu, 03 Jun 2021 20:23:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uGO/OAYeuWBGYAAAB5/wlQ (envelope-from ) for ; Thu, 03 Jun 2021 18:23:02 +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 1264A20544 for ; Thu, 3 Jun 2021 20:23:02 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 414232B24B; Thu, 3 Jun 2021 14:22:55 -0400 (EDT) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by mail.notmuchmail.org (Postfix) with ESMTPS id D3E3C2B246 for ; Thu, 3 Jun 2021 14:22:51 -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 B823A1B0022B; Thu, 3 Jun 2021 21:22:46 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1622744566; 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: in-reply-to:in-reply-to:references:references; bh=qEiHQEc7NwFJsHB0mq9jq6zf6Yyzn+ZAWe/4Ft+/w74=; b=QNAH6Xna9lGajBXorfwm2j5X8pIu9S1VkwzGKyA02H5kKM+HiH8O58lnvfn6zIJgVZ2zoP kPhkPEiPGapm+bkrYvptnzTflShzJOpcGr0EU/nb9k4Q9bU2F/ERjtKruu84h3UUcWuScg MSVq3txnuZDYNqjQ3OI6m0wRsi1KAe5RI6LvspA46hRw1cX+Cf5N057dM07SeEt2K9A6TC /3UGCgZuz0uwZ6T4GJHgHBNxo+HCBj+wMnxeH36c6cUl4/hpIsrPuLMkFzqwKI0dXsMcym 0aiwNXnyk9OiSyq13yGFUZ4QV0MlW21nIBZ8TJqBPTH06DHJy0nU3bmLAnygnA== From: Tomi Ollila To: "Tory S. Anderson" , David Bremner Subject: Re: [PATCH] emacs: PATCH [1/2] mail user agent In-Reply-To: <87lf7r569u.fsf@toryanderson.com> References: <87k0nuhfrk.fsf@toryanderson.com> <87pmxjt14b.fsf@tethera.net> <87zgwalbqc.fsf@tethera.net> <87r1hjjg45.fsf@tethera.net> <87lf7r569u.fsf@toryanderson.com> 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=1622744566; 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: in-reply-to:in-reply-to:references:references; bh=qEiHQEc7NwFJsHB0mq9jq6zf6Yyzn+ZAWe/4Ft+/w74=; b=Vcq9Gokh5pKrM62SEeHC2xudWsSOBfIr8kQ1WYxTX2rTOdKvJhiqZ5q71ZDXbmMDJUG0Et YM5yjE5kDGBLPFMJs3nxd97Dczwu0Z5EY7sstgLn8AFkzrRajlHQJeHMUUrQw0p1xpnrHv Wwb42hR6FHrMs6RNt67xeL2ahpH3lkgn9PlQvGPinvA2vRR+6QTWE9PjrK3q1+KBbLfYqn 76ySWQZppu8DeS83NbvZHrehz4lLO9SwAbJnBMuWP8rwDJFafgZ8knGc0LLUByL16lvzwR okBuIeXyv7xJoh80WBVIZ7Jhdn8xBnLZ4AdGJKTo0XVK+7/4LH/jH2AgvTAl5w== ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1622744566; a=rsa-sha256; cv=none; b=WbfUt7MrhJd2R77U7VnH/CD0xp3tbcHwO+Tgl0oFThHqyr94RhZyLh4RCs7IgcdMOd6Kwy rTgxVZ/emssSMVgafxEmzgSYkWbNo4ZAs7VMug2kI14GpAv5nDiBAy1qCvrdb1bC2wA8GP L0zaVYHY1DMrAhb4aFyFWoo9JoT9QkORfv5rqc5ZV/PffN20ig58v7OSSe653xvGSYMMTv ePKY7xZzq4CiQ90T7JRQ0h68fb8NZUVHMI3jLQ3iYGDDB74GsXwLRsbbiONfXhj3gdDUCi nmV020pRcxxQtVshOlKhgQ9Nh0ygBhzrLA3QxFCCfusVip34m3iq6p2626T7fg== Message-ID-Hash: PMSVLQGHSEGWLXDERKDJQR3UVEIGT7QO X-Message-ID-Hash: PMSVLQGHSEGWLXDERKDJQR3UVEIGT7QO 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 CC: notmuch@notmuchmail.org 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=1622744582; 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=4++MZucybVn8OaqohieGycgSRlkHPYOaMHB41fdMGxs=; b=FKMrrJiVVDqyS33Ha3sSdDFK0AC3Er900MQtn49IydGsLNMqTEoQT6GTLLfMbHq+pIqPZC csDQVMgiRib5AuJxBKd08rr1rsqnLgKElxmtkmpGJq9j4rnocp1gXEASmnoS7z1ygXHibH txm0gXOzTv06gkEX5StyJROllPaKfkJaCC2STb8B5xalnNn5IaNhsnbTLnP0B1XV8MghQh gaIJxmj9j7YAI6WvYHwHgApTDukz4T2ZSCSgcsKH5TOve9AFx1N1XugHzisrB0NsM984Dq KS4ZOPF6TTVUU9Qnm0aEVGcA7Vw17t7T8GbitMdsYbwHvCJCgRO37sGUBJXjMQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1622744582; a=rsa-sha256; cv=fail; b=RONUxd1xuIrkxWUqtu+j9trGHEcom6j8sCnVqva9rs3aFs0WTvL9CJ4a2hyoEYhOh303hQ hboRyKMOt3SNj6LUPXKd4xyt+4a8O1grqBnIib3AqlpLOqiPQmlYda05mHxXl7KENk8NjW zpdx+7fatg4yfkSYhwxv0A0YZ3xQxQB83fqRTHUxNTeYT4vMq2SHQ83/z3xdrFn5/woo48 PCEXH2ucYJFOZTtummFkeDIMatMTkJ9/GAWCwJnZKeogUZhKCBTuGyc9aBXrSj6y7FBmfa lRC3w7bg/+uOuwf4kYi6CY5Equ2iheDWXO2z76Sx2Tfc9SapWhVHwHFsGuOH5Q== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=QNAH6Xna; 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=QNAH6Xna; 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: 1264A20544 X-Spam-Score: 0.98 X-Migadu-Scanner: scn1.migadu.com X-TUID: tM4Uks/UGdaP On Thu, Jun 03 2021, Tory S. Anderson wrote: > Nice follow-upabout what other browsers do! > > David Bremner writes: > >> Tomi Ollila writes: >> >>> On Mon, May 31 2021, David Bremner wrote: >>> >>>> Tomi Ollila writes: >>>>> >>>>> I am for 'ripping the bandage off' and not configure mail-user-agent >>>>> outside of notmuch use (and just require 'notmuch would not set anything...) >>>>> >>>>> Could we have some 'compose-mail' variant (different name, of course; >>>>> I had one in mind but then came off-by one problem... >;) which >>>>> configures mail-user-agent just for that use (or something). >>>>> >>>> >>>> Are you thinking about notmuch-mua-mail (which exists)? >>>> >>>> Tory, did you try the eval-after-load trick I mentioned btw? That seemed >>>> to work in my testing, and I'm just not sure that customizing a >>>> notmuch-* variable is much less annoying than adding an eval-after-load to >>>> reset the variable after notmuch messes with it. > > No, I'm guilty here. I used my patch instead and haven't looked back > since. I think having to add code lines to an init file is much more > annoying (and less transparent) than simply having something for which I > can add a =:custom= line in my use-package statements, or new users just > use the customizer to explore to. Maybe that's just me, but I feel much > more comfortable about sharing that config or that suggestion with > others, too. Explorability is what customizer's big benefit to emacs is, > so it seems to me a real advantage to have this in there. > mail-user-agent is defcustom in simple.el, starting: (defcustom mail-user-agent 'message-user-agent "Your preference for a mail composition package. Various Emacs Lisp packages (e.g. Reporter) require you to compose an outgoing email message. This variable lets you specify which mail-sending package you prefer. Valid values include: `message-user-agent' -- use the Message package. See Info node `(message)'. `sendmail-user-agent' -- use the Mail package. See Info node `(emacs)Sending Mail'. `mh-e-user-agent' -- use the Emacs interface to the MH mail system. See Info node `(mh-e)'. `gnus-user-agent' -- like `message-user-agent', but with Gnus paraphernalia if Gnus is running, particularly the Gcc: header for archiving. Additional valid symbols may be available; check with the author of your package for details. The function should return non-nil if it succeeds. ... Currently if one uses/used customizer to change to something else, which is saved to .emacs (or somewhere else where custom-file points to), and then loads notmuch, it suddenly changes to 'notmuch-user-agent. AFAIU the change your patch did does not change that, one just has to customize notmuch-mail-user-agent. IMO that makes things messy. If there were option to somehow magically add more values to the mail-user-agent customize menu while loading notmuch.el then one could just directly choose notmuch-user-agent from that menu. Otherwise I don't see other options than document how to do that configuration (and drop that setq and add NEWS entry). Tomi >>>> >>>> Still waiting for feedback from notmuch users that actually use M-x >>>> compose-mail or other similar generic entry points. >>> >>> Does anyone know how compose-mail behaves when one has loaded any other >>> emacs mua (mh, vm, gnus, mu, ...) ? >>> >> >> As far as I can tell >> >> vm: only locally binds mail-user-agent >> mh-e: used to have a setq mail-user-agent, removed in 2003-ish >> mu4e: documents how to set mail-user-agent >> rmail: reads mail-user-agent, but does not set >> gnus: only locally binds mail-user-agent >> wanderlust: tells you how how to set mail-user-agent (and oddly, how >> to define conditionaly define a user agent) >> >> So I think notmuch is the odd one out here. >> _______________________________________________ >> notmuch mailing list -- notmuch@notmuchmail.org >> To unsubscribe send an email to notmuch-leave@notmuchmail.org > _______________________________________________ > notmuch mailing list -- notmuch@notmuchmail.org > To unsubscribe send an email to notmuch-leave@notmuchmail.org