1 From: "Carl Worth" <cworth@cworth.org>
2 To: notmuch@notmuchmail.org
3 Date: Wed, 18 Nov 2009 01:42:02 -0800
4 Subject: [notmuch] [PATCH 1/2] Close message file after parsing message
6 In-Reply-To: <yunbpj0etua.fsf@aiko.keithp.com>
7 References: <1258471718-6781-1-git-send-email-dottedmag@dottedmag.net>
8 <87lji5cbwo.fsf@yoom.home.cworth.org> <yunbpj0etua.fsf@aiko.keithp.com>
9 Message-ID: <87pr7gqidx.fsf@yoom.home.cworth.org>
11 On Tue, 17 Nov 2009 13:15:25 -0800, Keith Packard <keithp at keithp.com> wrote:
12 > Threading the message also involves displaying the from and to contents,
13 > which requires opening the message file. The alternative to the fix I
14 > provided is to just parse all of the message headers when first opening
15 > the message; it could then be immediately closed and the hash referred
16 > to for all header data. Given the choice, just having the caller say
17 > when it has finished with a message is probably a reasonable option...
21 Once I finally got back on the ground again, I pushed out a revised
22 version of your patch, (didn't need the reply-to stuff anymore since I
23 had fixed that differently in the meantime).
25 I'm pretty happy with the state of this portion of the code now.
27 Thanks Keith and Mikhail for your input on and code to fix this bug.