httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <>
Subject Re: mod_smtpd design - protocol
Date Sun, 17 Jul 2005 05:11:25 GMT
"Jem Berkes" <> writes:

>> Have you considered using libapreq2 for parsing
>> the mime headers in there?  The header parser
>> should really convenient for that, you could
>> even introduce a post-header-parser hook that
>> runs when the parser finishes.
> My own suggestion is that we don't touch or try to interpret MIME.
> Parsing the message headers into a table is straightforward but
> once you get into recognizing MIME you're moving out of the protocol
> realm and into the message format realm - and you start having to
> worry about messages within messages, boundaries, corrupt structures,
> and other things that I think are  not mod_smtpd's problem.

Right, the message format realm is where a request_rec
(and associated input filters) might have a role.  It's 
also where you can change from reading single lines to 
reading entire blocks, thus cutting down on round trips
through the input filters.

Joe Schaefer

View raw message