Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

nsIMsgSendLater

The nsIMsgSendLater interface provides functions for managing the unsent folder of a messaging account.

web.html($0) is defined in wiki.template('tbsource', mediawiki.args([$1])). It is wiki.template(mediawiki.path('InterfaceStatus:Scriptable_' + $4, "en")) and wiki.template(mediawiki.path('InterfaceStatus:' + $2, "en"), mediawiki.args([$3])).

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.

 

Document Tags and Contributors

 Contributors to this page: Sheppy, Wjjohnst
 Last updated by: Sheppy,