home - docs - posts - github - contact - rss

JS - Message/Email Functions

countemail

How many emails a user has.

enteremail

Enter an email to a user.

NOTE: this does not check if a_string1 exists as a valid user. Be sure to check that first.

getarea

Gets the name of the currently selected message base.

getmsglr

Returns the user's last read message in the current message base.

getmsgtot

Returns the total number of messages in the current message base.

listemail

List a user's private email

listmsgs

Displays a list of messages in the currently selected message base.

postsmsg

Posts a message into the messagebase defined

readmsg

Returns an object representing a message, if the requested msgid does not exist (eg. it was deleted) returns the next message, or undefined if there is no next message.

Example:

{
"idx": 1,
"from": "The Sysop",
"to": "A User",
"subject": "Stuff",
"body": "Blah Blah\rMore Blah"
}

readmsgs

Displays messages in the currently selected message base.

scanbases

List message bases with unread and message totals.

selectarea

Allow the user to select (change) the current message base.

selectgroup

Allow the user to select (change) the current message group.

unreademail

How many unread emails a user has

writemsg

Write a message in the currently selected message base, first asking to, subject and destination then launching the editor.

Back to Documentation