The nsIMsgSendLater
interface provides functions for managing the unsent folder of a messaging account.
Inherits from: nsIStreamListener
Implemented by: @mozilla.org/messengercompose/sendlater;1
. To create an instance, use
var msgSendlater = Components.classes["@mozilla.org/messengercompose/sendlater;1"] .getService(Components.interfaces.nsIMsgSendLater);
void SendUnsentMessages(in nsIMsgIdentity identity); |
void RemoveListener(in nsIMsgSendLaterListener listener); |
void AddListener(in nsIMsgSendLaterListener listener); |
nsIMsgFolder getUnsentMessagesFolder](in nsIMsgIdentity identity); |
Attribute | Type | Description |
msgWindow |
nsIMsgWindow |
Sends all unsent messages for an identity.
void SendUnsentMessages(in nsIMsgIdentity identity)
identity
The nsIMsgIdentity
to send unsent messages for
Remove an event listener from this nsISendMsgLater
instance
void RemoveListener(in nsIMsgSendLaterListener listener);
listener
The nsIMsgSendLaterListener to remove.
Add an event listener to this nsISendMsgLater
instance.
void AddListener(in nsIMsgSendlaterListener listener);
listener
The nsIMsgSendLaterListener
to add.
Get the unsent messages folder for an identity.
nsIMsgFolder getUnsentMessagesFolder(in nsIMsgIdentity identity);
identity
The nsIMsgIdentity to get the folder for.
The nsIMsgFolder containing unsent messages.