[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Content-Length the pros/cons

From: Alain Magloire
Subject: Content-Length the pros/cons
Date: Tue, 30 Jan 2001 11:55:38 -0500 (EST)


  One of the reason, I decided not to use "Content-Length" for parsing.
But it is better explained the tone is little flamatory.


The other reason, I needed to know the # lines of the message.

Elm uses this scheme, it will seek() and if the jump goes to a place
where you do not find a "From " separator jump back an resume.

My earlier implementation did this, the speed gain was noticeable in
terms of seconds when testing on a 20Meg mailbox with ~6000 messages.
But since I needed the lines of the message, for example pop3d uses it to
calculate the size for STAT or LIST, the hack was removed.
Now I rely on the c-client VALID() macro for heuristic in discover the
"From .*" separator.

In any case amusing reading.

au revoir, alain
Aussi haut que l'on soit assis, on n'est toujours assis que sur son cul !!!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]