unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: webdev@toryanderson.com (Tory S. Anderson)
To: notmuch@notmuchmail.org
Subject: [PATCH] emacs: PATCH [1/2] mail user agent
Date: Wed, 19 May 2021 10:03:59 -0600	[thread overview]
Message-ID: <87k0nuhfrk.fsf@toryanderson.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: patch --]
[-- Type: text/x-patch, Size: 1054 bytes --]

From 9a872e1b3b2b2231d1742fbc04cb366ab3b12b30 Mon Sep 17 00:00:00 2001
From: Tory Anderson <webdev@toryanderson.com>
Date: Wed, 19 May 2021 07:39:45 -0600
Subject: [PATCH 1/2] mail user agent

---
 emacs/notmuch.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 6d37c623..21a85656 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -121,6 +121,9 @@ there will be called at other points of notmuch execution."
   :group 'notmuch-search
   :group 'notmuch-hooks)

+(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)

 (provide 'notmuch)

--
2.31.1

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



             reply	other threads:[~2021-05-19 16:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-19 16:03 Tory S. Anderson [this message]
2021-05-22 12:16 ` [PATCH] emacs: PATCH [1/2] mail user agent David Bremner
2021-05-22 13:28   ` Tomi Ollila
2021-05-22 15:38     ` Tory S. Anderson
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=87k0nuhfrk.fsf@toryanderson.com \
    --to=webdev@toryanderson.com \
    --cc=notmuch@notmuchmail.org \
    /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).