Ken Murchison murch at andrew.cmu.edu
Thu Oct 9 06:54:54 EDT 2008

```David Carter wrote:
> On Wed, 8 Oct 2008, Ken Murchison wrote:
>
>> Changing it to the following fixes it as long as References isn't the
>>
>> if ((refstr = stristr(headers, "\r\nreferences:"))) {
>>
>> If we're worried about it being the first header field, there is an
>> easy test for that.  Comments?
>
> That would certainly be better than the current situation.
>
> Is there a particular reason that we can't use index_pruneheader()? It
> does require a bit of scratch space.

Mainly because its destructive, but it also seemed like overkill.  We're
working directly with the cache entry, so changing its contents isn't
cool.  I supposed we could malloc() a working copy.