Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 9C5F4431FC1 for ; Sat, 10 Apr 2010 07:00:55 -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=unavailable 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 AfJkFVebqgHf for ; Sat, 10 Apr 2010 07:00:54 -0700 (PDT) Received: from homiemail-a17.g.dreamhost.com (caiajhbdccac.dreamhost.com [208.97.132.202]) by olra.theworths.org (Postfix) with ESMTP id EBC594196F2 for ; Sat, 10 Apr 2010 07:00:53 -0700 (PDT) Received: from sspaeth.de (unknown [195.190.188.219]) by homiemail-a17.g.dreamhost.com (Postfix) with ESMTPA id D695D7A805C; Sat, 10 Apr 2010 07:00:51 -0700 (PDT) Received: by sspaeth.de (sSMTP sendmail emulation); Sat, 10 Apr 2010 16:00:49 +0200 From: "Sebastian Spaeth" To: Carl Worth , Dirk Hohndel , Notmuch list Subject: Re: RFC: User-Agent header In-Reply-To: <874ojkf23u.fsf@yoom.home.cworth.org> References: <87iq821hba.fsf@SSpaeth.de> <874ojkf23u.fsf@yoom.home.cworth.org> Date: Sat, 10 Apr 2010 16:00:49 +0200 Message-ID: <87wrwf9zla.fsf@SSpaeth.de> 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: Sat, 10 Apr 2010 14:00:55 -0000 On 2010-04-10, Carl Worth wrote: > So I propose something like: > > User-Agent: Notmuch/0.2 (http://notmuchmail.org) Emacs/23.1.1 (gnu/linux) That looks good to me. So I assume the correct strategy here would be to: 1) have notmuch reply insert a header: User-Agent: Notmuch/0.2 (http://notmuchmail.org) 2) have notmuch-reply.el (or whatever) add a setup mail hook that searches for an existing User-Agent header and appends " Emacs/23.1.1 (gnu/linux)" One issue is again, such a hook would be message mode specific, so gnus users might not appreciate that. Also when composing a message via c-x m this would not work. So perhaps an all lisp solution? Again, can we hijack message mode to add our own promotion header? Or has the time come for a notmuch-message-mode that somehow inherits from message mode? bremner said something about dynamic bindings that would allow that. Sebastian