unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Sebastian Spaeth <Sebastian@SSpaeth.de>
To: Notmuch list <notmuch@notmuchmail.org>
Subject: Re: RFC: User-Agent header
Date: Mon, 12 Apr 2010 00:12:15 +0200	[thread overview]
Message-ID: <87hbnhprk0.fsf@SSpaeth.de> (raw)
In-Reply-To: <87iq821hba.fsf@SSpaeth.de>

After some research, this is what I found/propose:

With some simple elisp am I using this User-Agent header now:

  User-Agent: notmuch version 0.1 (Emacs 23.1.1/i486-pc-linux-gnu)

This needs to be done:

1) Add "User-Agent" to the variable "message-required-headers" (it is
(optional . User-Agent) by default in message-mode.

2) Message mode will then insert a User-Agent header and fill it with
the (local) variable "message-newsreader". This is how I set my
message-newsreader now (leading to above string): 

(setq message-newsreader (concat (substring (shell-command-to-string (concat notmuch-command " --version")) 0 -1) " (Emacs " emacs-version "/" system-configuration ")"))

This works fine for composing mails with both "m" (from within notmuch)
and "c-x m" from outside notmuch. It won't work with "r" as message mode
does not seem to be involved in setting up the headers at all then. (So
notmuch-reply.c might just want to also set up the User-Agent header by
default).

sebastian

  parent reply	other threads:[~2010-04-11 22:13 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-08  8:26 RFC: User-Agent header Sebastian Spaeth
2010-04-08 15:12 ` Dirk Hohndel
2010-04-10  2:55   ` Carl Worth
2010-04-10  4:43     ` Dirk Hohndel
2010-04-10 13:16     ` Jameson Rollins
2010-04-10 14:00     ` Sebastian Spaeth
2010-04-10 14:45       ` Dirk Hohndel
2010-04-10 14:02   ` Xavier Maillard
2010-04-11 22:12 ` Sebastian Spaeth [this message]
2010-04-12  5:45   ` David Edmondson
2010-04-12  8:30   ` [PATCH] " Sebastian Spaeth
2010-04-13 17:44     ` Carl Worth
2010-04-13 22:55       ` Xavier Maillard
2010-04-14  7:38       ` [PATCH 13/13] notmuch.el: Add a function to insert a notmuch user-agent header Sebastian Spaeth
2010-04-14  7:44         ` David Edmondson
2010-04-14  9:52           ` Sebastian Spaeth
2010-04-14  7:44       ` [PATCH] RFC: User-Agent header Sebastian Spaeth
2010-04-15 19:52         ` Carl Worth

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=87hbnhprk0.fsf@SSpaeth.de \
    --to=sebastian@sspaeth.de \
    --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).