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);

Method overview

void SendUnsentMessages(in nsIMsgIdentity identity);
void RemoveListener(in nsIMsgSendLaterListener listener);
void AddListener(in nsIMsgSendLaterListener listener);
nsIMsgFolder getUnsentMessagesFolder](in nsIMsgIdentity identity);

Attributes

Attribute Type Description
msgWindow nsIMsgWindow  

Methods

SendUnsentMessages()

Sends all unsent messages for an identity.

void SendUnsentMessages(in nsIMsgIdentity identity)
Parameters

identity

The nsIMsgIdentity to send unsent messages for

 

RemoveListener()

Remove an event listener from this nsISendMsgLater instance

void RemoveListener(in nsIMsgSendLaterListener listener);
Parameters

listener

The nsIMsgSendLaterListener to remove.

 

AddListener()

Add an event listener to this nsISendMsgLater instance.

void AddListener(in nsIMsgSendlaterListener listener);
Parameters

listener

The nsIMsgSendLaterListener to add.

 

getUnsentMessagesFolder()

Get the unsent messages folder for an identity.

nsIMsgFolder getUnsentMessagesFolder(in nsIMsgIdentity identity);
Parameters

identity

The nsIMsgIdentity to get the folder for.

 

Return Value

The nsIMsgFolder containing unsent messages.