Name Description Size
Auth.sys.mjs This file implements the authentication mechanisms - AUTH LOGIN - AUTH PLAIN - AUTH CRAM-MD5 for all the server implementations, i.e. in a generic way. In fact, you could use this to implement a real server in JS :-) . @author Ben Bucksch <ben.bucksch beonex.com> 6068
Binaryd.sys.mjs A binary stream-based server. Listens on a socket, and whenever a new connection is made it runs a user-supplied handler function. Example: A trivial echo server (with a null daemon, so no state shared between connections): let echoServer = new BinaryServer(function(conn, daemon) { while(1) { let data = conn.read(1); conn.write(data); } }, null); 7063
Imapd.sys.mjs 76649
Ldapd.sys.mjs This file provides fake LDAP server functionality, just enough to run our unit tests against. Currently: - it accepts any bind request (no authentication). - it supports searches, but only some types of filter. - it supports unbind (quit) requests. - all other requests are ignored. It should be extensible enough that extra features can be added as required. 17991
Maild.sys.mjs JavaScript constructors for commonly-used classes; precreating these is a speedup over doing the same from base principles. See the docs at http://developer.mozilla.org/en/Components.Constructor for details. 16507
Nntpd.sys.mjs This function converts an NNTP wildmat into a regular expression. I don't know how accurate it is wrt i18n characters, but its primary usage right now is just XPAT, where i18n effects are utterly unspecified, so I am not too concerned. This also neglects cases where special characters are in [] blocks. 16566
Pop3d.sys.mjs Contributors: Ben Bucksch <ben.bucksch beonex.com> <http://business.beonex.com> (RFC 5034 Authentication) 13360
Smtpd.sys.mjs This handler implements the bare minimum required by RFC 2821. @see RFC 2821 If dropOnAuthFailure is set, the server will drop the connection on authentication errors, to simulate servers that do the same. 7183