* Mike Mimic (ppagee@xxxxxxxxx) [030907 23:08]:
> Why Mail::Message->read does not use
> Mail::Box::Parser::C when reading from filehandle? Why
> is it not possible?
My idea was (is) that the best way to parse messages is from file. Even
in procmail-like applications, it is preferred to use an intermediate
storage in file. On the moment I develop Mail::Box::Procmail which
demonstrates that. So: reading from file is better supported than from
other things, as an example by the C parser.
One of the key performance gains for the Mail::Box::Parser is the use
of seek() on the files to look forward whether the message contains a
correct Content-Length line. In that case, the MBOX folder can be
walked though from header to header without a need to parse the body.
This saves considerable time with the way messages are constructed
nowadays: complex multiparts, large binary data (Word documents etc)
It doesn't need to stay that way: the C parser could implement a parser
without seek(). However, I have no time for that, on the moment.
> As I found out Mail::Box uses it only in parsing
> maildir and MH formats. Is this true?
No, that shouldn't be the case.
--
MarkOv
------------------------------------------------------------------------
drs Mark A.C.J. Overmeer MARKOV Solutions
Mark@xxxxxxxxxxxx solutions@xxxxxxxxxxxx
http://Mark.Overmeer.net http://solutions.overmeer.net
|