Name Description Size Coverage
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> 7140 -
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); 7047 -
EwsServer.sys.mjs This file provides a mock/fake EWS (Exchange Web Services) server to run our unit tests against. 71687 -
GraphServer.sys.mjs A mock server to mimic operations with Graph API. 39023 -
GraphTypes.sys.mjs A recipient to a `GraphMessage`. Note that the structure of this class does *not* match the structure of the `recipient` type from the Graph API. 2791 -
Imapd.sys.mjs 81296 -
IMAPServer.sys.mjs A simple IMAP server for testing purposes. 4966 -
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. 17847 -
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. 22665 -
MockServer.sys.mjs A snapshot of a change in a folder or item log. @typedef {object} ChangeRecord @property {string} kind - The change type. One of "create", "update", "delete", or "readflag". @property {string} parentId - The parent folder or calendar ID. @property {string} id - The changed folder or item ID. 20106 -
Nntpd.sys.mjs Prepare text to be sent as a multi-line response: dot-stuff it, and make sure it ends with a line break so that the terminating dot is on a line of its own. @param {string} text @returns {string} 17093 -
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) 13268 -
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. 9950 -
SMTPServer.sys.mjs A simple SMTP server for testing purposes. 1532 -