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 EBB45431FC1 for ; Sat, 10 Apr 2010 07:45:05 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -4.2 X-Spam-Level: X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] 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 oHFf-5aD17Zk for ; Sat, 10 Apr 2010 07:45:05 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) by olra.theworths.org (Postfix) with ESMTP id 2F4C54196F2 for ; Sat, 10 Apr 2010 07:45:05 -0700 (PDT) Received: from localhost ([::1] helo=localhost.localdomain) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1O0bvk-000475-9z; Sat, 10 Apr 2010 14:45:04 +0000 Received: by localhost.localdomain (Postfix, from userid 500) id D5A92C00E1; Sat, 10 Apr 2010 07:45:02 -0700 (PDT) From: Dirk Hohndel To: Sebastian Spaeth , Carl Worth , Notmuch list Subject: Re: RFC: User-Agent header In-Reply-To: <87wrwf9zla.fsf@SSpaeth.de> References: <87iq821hba.fsf@SSpaeth.de> <874ojkf23u.fsf@yoom.home.cworth.org> <87wrwf9zla.fsf@SSpaeth.de> Date: Sat, 10 Apr 2010 07:45:02 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html 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:45:06 -0000 On Sat, 10 Apr 2010 16:00:49 +0200, "Sebastian Spaeth" wrote: > 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. I really think we need to investigate having a notmuch-message-mode as there are now a number of reasons to be able to customize things when the user is running notmuch. BTW: I don't think these are "promotion headers" - I relatively frequently want to check which email client someone else is using when I'm trying to figure out why things go wrong (incorrect mail headers, mangled spacing (in patches, for example), incorrect HTML messages, etc) /D -- Dirk Hohndel Intel Open Source Technology Center