On Friday 01 July 2005 16:34, Rian A Hunter wrote:
> Quoting Garrett Rooney <[EMAIL PROTECTED]>:
> > 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

Reply via email to