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> 6094
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); 7081
EwsServer.sys.mjs This file provides a mock/fake EWS (Exchange Web Services) server to run our unit tests against. 50721
Imapd.sys.mjs 76763
IMAPServer.sys.mjs A simple IMAP server for testing purposes. 3781
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. 17879
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. 16523
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. 16686
NNTPServer.sys.mjs A simple NNTP server for testing purposes. 1730
Pop3d.sys.mjs Contributors: Ben Bucksch <ben.bucksch beonex.com> <http://business.beonex.com> (RFC 5034 Authentication) 13354
POP3Server.sys.mjs A simple POP3 server for testing purposes. 1848
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. 7950
SMTPServer.sys.mjs A simple SMTP server for testing purposes. 1532