1 Return-Path: <Sebastian@SSpaeth.de>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id BE9304196F2
\r
6 for <notmuch@notmuchmail.org>; Sun, 11 Apr 2010 15:13:10 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5
\r
12 tests=[BAYES_20=-0.001] autolearn=ham
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id KMAkj7x4gHQj for <notmuch@notmuchmail.org>;
\r
16 Sun, 11 Apr 2010 15:13:10 -0700 (PDT)
\r
17 Received: from homiemail-a25.g.dreamhost.com (caiajhbdcaib.dreamhost.com
\r
19 by olra.theworths.org (Postfix) with ESMTP id F0896431FC1
\r
20 for <notmuch@notmuchmail.org>; Sun, 11 Apr 2010 15:13:09 -0700 (PDT)
\r
21 Received: from spaetzbook.SSpaeth.de (unknown [195.190.188.219])
\r
22 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
\r
23 (No client certificate requested)
\r
24 by homiemail-a25.g.dreamhost.com (Postfix) with ESMTPSA id B73DD67806B
\r
25 for <notmuch@notmuchmail.org>; Sun, 11 Apr 2010 15:13:07 -0700 (PDT)
\r
26 Received: by spaetzbook.SSpaeth.de (sSMTP sendmail emulation);
\r
27 Mon, 12 Apr 2010 00:13:04 +0200
\r
28 From: Sebastian Spaeth <Sebastian@SSpaeth.de>
\r
29 To: Notmuch list <notmuch@notmuchmail.org>
\r
30 Subject: Re: RFC: User-Agent header
\r
31 In-Reply-To: <87iq821hba.fsf@SSpaeth.de>
\r
32 Date: Mon, 12 Apr 2010 00:12:15 +0200
\r
33 Message-ID: <87hbnhprk0.fsf@SSpaeth.de>
\r
34 References: <87iq821hba.fsf@SSpaeth.de>
\r
35 User-Agent: notmuch version 0.1 (Emacs 23.1.1/i486-pc-linux-gnu)
\r
37 Content-Type: text/plain; charset=us-ascii
\r
38 X-BeenThere: notmuch@notmuchmail.org
\r
39 X-Mailman-Version: 2.1.13
\r
41 List-Id: "Use and development of the notmuch mail system."
\r
42 <notmuch.notmuchmail.org>
\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
44 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
46 List-Post: <mailto:notmuch@notmuchmail.org>
\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
50 X-List-Received-Date: Sun, 11 Apr 2010 22:13:11 -0000
\r
52 After some research, this is what I found/propose:
\r
54 With some simple elisp am I using this User-Agent header now:
\r
56 User-Agent: notmuch version 0.1 (Emacs 23.1.1/i486-pc-linux-gnu)
\r
58 This needs to be done:
\r
60 1) Add "User-Agent" to the variable "message-required-headers" (it is
\r
61 (optional . User-Agent) by default in message-mode.
\r
63 2) Message mode will then insert a User-Agent header and fill it with
\r
64 the (local) variable "message-newsreader". This is how I set my
\r
65 message-newsreader now (leading to above string):
\r
67 (setq message-newsreader (concat (substring (shell-command-to-string (concat notmuch-command " --version")) 0 -1) " (Emacs " emacs-version "/" system-configuration ")"))
\r
69 This works fine for composing mails with both "m" (from within notmuch)
\r
70 and "c-x m" from outside notmuch. It won't work with "r" as message mode
\r
71 does not seem to be involved in setting up the headers at all then. (So
\r
72 notmuch-reply.c might just want to also set up the User-Agent header by
\r