Re: [PATCH] Use message-field-value instead of message-fetch-field in FCC header setup.

Subject: Re: [PATCH] Use message-field-value instead of message-fetch-field in FCC header setup.

Date: Mon, 09 May 2011 09:32:42 -0700

To: Dmitry Kurochkin, Notmuch Mail

Cc:

From: Jameson Graef Rollins


On Mon,  9 May 2011 16:06:20 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:
> For message-fetch-field the buffer is expected to be narrowed to
> just the header of the message.  That is not the case when
> notmuch-fcc-header-setup is run, hence a wrong header value may be
> returned.  E.g. when forwarding an
> email, (message-fetch-field "From") returns the From header value
> of the forwarded email.
> 
> Message-field-value is the same as message-fetch-field, only
> narrows the buffer to the headers first.

Hey, Dmitry.  This is a nice clean fix.  I've applied it to the r-c/0.6.

jamie.
part-000.sig (application/pgp-signature)

Thread: