[tpop3d-discuss] Stealing C-Client locks incompatible with mailspool cache

Odhiambo Washington wash at wananchi.com
Sat, 23 Feb 2002 15:15:26 +0300


* Chris Lightfoot <chris@ex-parrot.com> [20020222 20:51]: wrote:
> On Fri, Feb 22, 2002 at 10:29:11AM -0700, Ben Schumacher wrote:
> > While I realize that the metadata cache for is an experimental feature, I
> > had it enabled on my system and noticed some issue when stealing C-Client
> > locks. Specifically, after stealing a C-Client lock, it appears that the
> > metadata cache contains invalid information and therefore truncates/splits
> > messages.
> > 
> > My suspicion is that when releasing the C-Client lock, Pine alters
> > messages in the spool and causes the metacache information to become
> > misaligned with the mailspool file.
> > 
> > I haven't poked the code enough to figure out a fix, but I thought I'd let
> > the world know so that it can, at least, be documented in the README.
> 
> OK. That's bad, since tpop3d should notice that the cache
> is invalid under any circumstances. It does this by
> comparing the MD5 hash of the start of the message -- the
> same thing that's used for the UIDs, in fact.
> 
> (Hmm. There is, in fact, a problem with this-- one should
> only add a message if the position of the start of the
> following message is valid. The fix is fairly simple; I'll
> put it into the next prerelease.)
> 

I did run tpop3d-1.4.1pre3 with metadata cache enabled and realized that
authentications were failing. So I disabled it and things were fine again.
Now with me, I do not have any C knowledge to poke around the code ;-)
pop-before-smtp is working very fine and I am also pleased to say that
I am very impressed by the loads on the system. This one doesn't eat into
the processor, even.

tia

-Wash

S y s t e m s   A d m i n.

-- 
Odhiambo Washington  <wash@wananchi.com>    "The box said 'Requires
Wananchi Online Ltd.  www.wananchi.com      Windows 95, NT, or better,'
Tel: 254 2 313985-9   Fax: 254 2 313922     so I installed FreeBSD."   
GSM: 254 72 743 223   GSM: 254 733 744 121  This sig is McQ!  :-)

++
Micro Credo:
	Never trust a computer bigger than you can lift.