THREAD curiosity

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 
>> first header field:
>>
>> 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.

> However we could do something like index_readheader().

Do mean in the sense that we work with the actual message, or just carve 
out some static scratch space?

-- 
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University


More information about the Cyrus-devel mailing list