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 5AD58431FB5 for ; Mon, 9 May 2011 09:32:48 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.29 X-Spam-Level: X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] autolearn=disabled 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 outdydmFUKwr for ; Mon, 9 May 2011 09:32:47 -0700 (PDT) Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu [131.215.239.19]) by olra.theworths.org (Postfix) with ESMTP id 3075A429E28 for ; Mon, 9 May 2011 09:32:47 -0700 (PDT) Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1]) by fire-doxen-postvirus (Postfix) with ESMTP id D9F9A3282C1; Mon, 9 May 2011 09:27:42 -0700 (PDT) X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new Received: from servo.finestructure.net (cpe-98-149-172-122.socal.res.rr.com [98.149.172.122]) (Authenticated sender: jrollins) by fire-doxen-submit (Postfix) with ESMTP id 217D63282D7; Mon, 9 May 2011 09:27:40 -0700 (PDT) Received: by servo.finestructure.net (Postfix, from userid 1000) id C628EC9C; Mon, 9 May 2011 09:32:42 -0700 (PDT) From: Jameson Graef Rollins To: Dmitry Kurochkin , Notmuch Mail Subject: Re: [PATCH] Use message-field-value instead of message-fetch-field in FCC header setup. In-Reply-To: <1304942780-4228-1-git-send-email-dmitry.kurochkin@gmail.com> References: <1304942780-4228-1-git-send-email-dmitry.kurochkin@gmail.com> User-Agent: Notmuch/0.6 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Mon, 09 May 2011 09:32:42 -0700 Message-ID: <878vufsul1.fsf@servo.factory.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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: Mon, 09 May 2011 16:32:48 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Mon, 9 May 2011 16:06:20 +0400, Dmitry Kurochkin 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. >=20 > 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. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJNyBcqAAoJEO00zqvie6q8R9oP/iZsl0PHhN611bu2gSqERFGe B+TuoOsTkFAyT7WvmkFeDC51oDf/aRQ0wBFsZ88cRib6wFHSIyBYEEM6uA0l5JSA 2Mi0yirwjuJJLx5MLJXqGy0n854Di4yR7ORrIlTH6PMdfSnRhxK4K1Ak+5MsVVxU KyjvafqtLh/LqoLrUwsJ2h+qysof5dhr3/NpTta9IL6xFvW2uEoH1ZHXQhzO8IRn oagp1+fDTkFb0QiL2PQJpNbnHPTzHNEnDvvvFloN7BJXihIZ95FJcbkeENST8/0/ 0UZkOd//8cDiWnz2QgCEyf5b0vCo2RLySZhADuDshj6L8HUrzcqz3WlpD9o8qF+L DSuhgAJFMCNi9kZ7Sj6w/zCx06nBHMduoi4Qc1Dm9+tbFkJps7kLCWJM0VMA9jdN 01T8IfZaiGA6dFGnPsycoF4f+I/sash+VinP9U1Ij43oMj+GoRREAbhuasqknjZ7 nXIJerZbw9GK5k07HlMUXpH4C1LUFelwYq8abCHwchYJlEzRBUSeSw1f3uwj5qsk L51kgDGiRkInESoLf30nq3hOlbbg9swIQEvrBz8ZmU8XG+oDM7mq/DJmbOQM3ZPh hEeqgsBRRF4cvGLGefJGOfbnmt7siUtExMWsd5PkXm/SqHEt5ROKQjTEVSKRKmxt hWHINEkpNNZdA3K9VDJC =IbrD -----END PGP SIGNATURE----- --=-=-=--