unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: "Tory S. Anderson" <webdev@toryanderson.com>
To: Tomi Ollila <tomi.ollila@iki.fi>
Cc: notmuch@notmuchmail.org
Subject: Re: [PATCH] emacs: PATCH [1/2] mail user agent
Date: Sat, 22 May 2021 09:38:43 -0600	[thread overview]
Message-ID: <87im3alqws.fsf@toryanderson.com> (raw)
In-Reply-To: <m2a6om3njl.fsf@guru.guru-group.fi> (Tomi Ollila's message of "Sat, 22 May 2021 16:28:46 +0300")

I'm coming from very limited experience here -- gnus is the only MUA I've used -- but I'd be surprised if it's common practice to hijack a setting to set the MUA to something.

As far as ripping the bandage off, I've followed that strategy many times in my professional life, but have come to dislike it; I'm in line with the Clojure paradigm to never break stuff. Sometimes that means namespacing, but in this case putting in the var with a default to preserve reverse compatibility is an easy thing, if a little kludgy. "Why was it ever doing this?" is a legitimate question, and it's no skin off my back if we simply chopped it out. But for a program as old and well-used as Notmuch, I would hate to break something that many users may not even realize they depended upon.

Isn't it a good idea to make the fix available for those who want it, but non-breaking for those who have no idea?

I suppose the docstring could be improved, and some options provided for those who don't know their MUAs. Trouble with options is, I don't know them, either -- only the notmuch MUA and 'gnus-user-agent. I'm not sure about others like mutt or muse or wanderlust or anything else. I'm not even sure if all of those have MUAs...

- Tory

Tomi Ollila <tomi.ollila@iki.fi> writes:

> On Sat, May 22 2021, David Bremner wrote:
>
>> webdev@toryanderson.com (Tory S. Anderson) writes:
>>
>>>  
>>> +(defcustom notmuch-mail-user-agent 'notmuch-user-agent
>>> +  "The mail user-agent to use when creating mail after using Notmuch. For historical purposes, the default is 'notmuch-user-agent"
>>> +  :group 'notmuch)
>>>  ;;; Mime Utilities
>>>  
>>>  (defun notmuch-foreach-mime-part (function mm-handle)
>>> @@ -1162,7 +1165,7 @@ Point should be at the beginning of the line."
>>>  
>>>  ;;; _
>>>  
>>> -(setq mail-user-agent 'notmuch-user-agent)
>>> +(setq mail-user-agent notmuch-mail-user-agent)
>>
>> OK, I appreciate idea of a smooth upgrade for existing notmuch users. I
>> wonder though if other emacs MUAs do this? I did not see e.g. a
>> gnus-mail-user-agent variable. I'm probably biased because I never use
>> compose-mail to send mail, but I'm wondering if we're better off to just
>> rip the bandage off and let users who want to use notmuch via generic
>> emacs mail sending commands configure that.
>
> 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).
>
> Tomi

  reply	other threads:[~2021-05-22 15:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-19 16:03 [PATCH] emacs: PATCH [1/2] mail user agent Tory S. Anderson
2021-05-22 12:16 ` David Bremner
2021-05-22 13:28   ` Tomi Ollila
2021-05-22 15:38     ` Tory S. Anderson [this message]
2021-05-31 23:33     ` David Bremner
2021-06-02 19:10       ` Tomi Ollila
2021-06-03 12:18         ` David Bremner
2021-06-03 15:15           ` Tory S. Anderson
2021-06-03 18:22             ` Tomi Ollila

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87im3alqws.fsf@toryanderson.com \
    --to=webdev@toryanderson.com \
    --cc=notmuch@notmuchmail.org \
    --cc=tomi.ollila@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).