Re: RFC: User-Agent header

Subject: Re: RFC: User-Agent header

Date: Sat, 10 Apr 2010 07:45:02 -0700

To: Sebastian Spaeth, Carl Worth, Notmuch list

Cc:

From: Dirk Hohndel


On Sat, 10 Apr 2010 16:00:49 +0200, "Sebastian Spaeth" <Sebastian@SSpaeth.de> 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

Thread: