From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id BE9304196F2 for ; Sun, 11 Apr 2010 15:13:10 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5 tests=[BAYES_20=-0.001] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KMAkj7x4gHQj for ; Sun, 11 Apr 2010 15:13:10 -0700 (PDT) Received: from homiemail-a25.g.dreamhost.com (caiajhbdcaib.dreamhost.com [208.97.132.81]) by olra.theworths.org (Postfix) with ESMTP id F0896431FC1 for ; Sun, 11 Apr 2010 15:13:09 -0700 (PDT) Received: from spaetzbook.SSpaeth.de (unknown [195.190.188.219]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by homiemail-a25.g.dreamhost.com (Postfix) with ESMTPSA id B73DD67806B for ; Sun, 11 Apr 2010 15:13:07 -0700 (PDT) Received: by spaetzbook.SSpaeth.de (sSMTP sendmail emulation); Mon, 12 Apr 2010 00:13:04 +0200 From: Sebastian Spaeth To: Notmuch list Subject: Re: RFC: User-Agent header In-Reply-To: <87iq821hba.fsf@SSpaeth.de> Date: Mon, 12 Apr 2010 00:12:15 +0200 Message-ID: <87hbnhprk0.fsf@SSpaeth.de> References: <87iq821hba.fsf@SSpaeth.de> User-Agent: notmuch version 0.1 (Emacs 23.1.1/i486-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Apr 2010 22:13:11 -0000 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