Nick Jennings nick@silverbucket.net Niklas E. Cathor nilclass@riseup.net
| Version: | 0.1.0 |
This module stores messages and drafts, as well as credentials for all of the various messaging protocols.
| Messages | Nick Jennings nick@silverbucket.net Niklas E. |
| Schemas | |
| email. | Represents a recipient of a message. |
| messages/ | Represents a saved message that hasn’t been sent yet. |
| messages/ | Represents a received or sent message. |
| messages/ | Credentials for an XMPP connection. |
| Exports | |
| messages | |
| account | returns a Messages object. |
| Messages | Represents a grouping of messages. |
| Properties | |
| name | Name of the account the messages are attatched to |
| pool | Direct access to the message pool (a <DateIndexedScope>) |
| Functions | |
| store | Takes a <message> object and stores it. |
| Variables | |
| message. | |
| Functions | |
| getLatest | Get latest draft. |
| saveLatest | Save given draft as latest one. |
Represents a saved message that hasn’t been sent yet.
| actor | Sender of the message. Same properties as email.recipient. |
| target | Array of email.recipient objects (including cc and bcc). |
| object.subject | Message subject (a String). |
| object.text | Message body (a String). |
| object.date | Message date. For a draft this is set to last time the draft was saved. |
Credentials for an XMPP connection.
| actor | object: |
| name | The account owner’s name. This name is used as the sender name for outgoing messages. |
| address | The address associated with this account. Will be used as the sender address for outgoing messages. |
| username | Username to authenticate against XMPP server. |
| password | Password to authenticate against XMPP server. |
| server | Hostname of the XMPP server. |
| resource | XMPP resource string (ie. Home) |
| port | Port to connect to. |
returns a Messages object.
Represents a grouping of messages.
| Properties | |
| name | Name of the account the messages are attatched to |
| pool | Direct access to the message pool (a <DateIndexedScope>) |
| Functions | |
| store | Takes a <message> object and stores it. |
| Variables | |
| message. | |
| Functions | |
| getLatest | Get latest draft. |
| saveLatest | Save given draft as latest one. |
Takes a message object and stores it.
store: function ( message )
Get latest draft.
getLatest: function ()
Save given draft as latest one.
saveLatest: function ( draft )