httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <n...@webthing.com>
Subject Re: mod_smtpd design.
Date Fri, 01 Jul 2005 15:47:31 GMT
On Friday 01 July 2005 16:34, Rian A Hunter wrote:
> Quoting Garrett Rooney <rooneg@electricjellyfish.net>:
> > Rian Hunter wrote:
> > > type misc_smtp_handler(request_rec *r) {
> > >     smtpd_request_rec *smtp_data;
> > >
> > >     if (strncmp("http", r->protocol_name, 4)) {
> > >         // decline to handle, this module doesn't handle
> > >         // http requests.
> > >     }
> > >     //then get smtpd specific data
> > >     smtp_data = get_smtpd_request(r);
> > >
> > >     // do some handlin'
> > > }

This is an interesting line to consider for the longer term (if we can resolve
the back-compatibility issue).  But it's far too big a disruption to 
contemplate for 2.1/2.2 or the SoC timeframe.

>  Maybe we can use the official iana port
> description list to specifiy protocols like 80 means http, 25 means smtp,
> 143 means imap etc.

We already have Paul's Listen/Protocol updates.  So we can even be more
flexible than that:

 Listen 80 http

would map port 80 to HTTP

whereas if we want to be horribly perverse to make a point

 Listen 80 smtp

would map it to SMTP

But I'm happy with your proposal as an enum, too.


-- 
Nick Kew

Mime
View raw message