wideact v0.0.3 StaleMail

Stalemail is a persistent mailbox system used by Wideact.

Summary

Functions

Parses the new message for updating the state

Starts up the mailbox loop

Functions

parse(state, arg)

Parses the new message for updating the state.

The :new_mailbox message connects a new client and creates a new mailbox if one is not already present. :new_mail is a check for new mail, which sends back the first of received messages for a given user. The :got_mail message is an acknowledgement that the user has received the first message, and it can be removed from the mailbox.

The :pass_message message is the basic transfer mechanism in stalemail, passing the message to the receiver’s mailbox (creating one in the process if not there).

start()

Starts up the mailbox loop.