Re: [vchkpw] vchkpw/onauth connection types
On 2007-01-08, at 1147, Joshua Megerman wrote: vpopmaild checks the username and password directly against the user database, so setting the type to vpopmaild shouldn't depend on what port you run it on. Is there any need for "other", and should I add "webmail" to the list? Also, should I use the words listed above, or should I just use the numeric types defined in vchkpw (0-3) and increment them for vpopmaild (4) and other (5 - if used)? i would go with words. the one exception would be for "other"... if you get a type code which is unknown, build a string which looks like "(type=19)" and send that as the type code, instead of "smtp" or "pop3". | John M. Simpson--- KG4ZOW ---Programmer At Large | | http://www.jms1.net/ <[EMAIL PROTECTED]> | | http://video.google.com/videoplay?docid=-4312730277175242198 | PGP.sig Description: This is a digitally signed message part
Re: [vchkpw] vchkpw/onauth connection types
words sounds good to me. Just my 2 cents. Remo Rick Widmer wrote: > I think I would prefer the words, but then I don't plan to use it at > all, so my opinion probably isn't that important. > > > > Joshua Megerman wrote: > > > !DSPAM:45a28ed9183882444718425! >
Re: [vchkpw] vchkpw/onauth connection types
I think I would prefer the words, but then I don't plan to use it at all, so my opinion probably isn't that important. Joshua Megerman wrote: In developing the onauth API, one of the things that I want to be a part of it is the connection type. Currently, I've got pop3, imap, smtp, vpopmaild and other. vchkpw supports 4 different auth types (POP, SMTP, IMAP and WEBMAIL). It sets the connection type based on a list of known ports (25/465/587 for SMTP, 110/995 for POP and 143/993 for IMAP), and defaults to POP on an unknown conenction. If it gets a POP or IMAP connection from a static list of webmail IPs (defaults to 127.0.0.1 only), it assumes that it's a webmail connection (and there's a bug in that code too, but I'll address that separately). vpopmaild checks the username and password directly against the user database, so setting the type to vpopmaild shouldn't depend on what port you run it on. Is there any need for "other", and should I add "webmail" to the list? Also, should I use the words listed above, or should I just use the numeric types defined in vchkpw (0-3) and increment them for vpopmaild (4) and other (5 - if used)? Josh