Search completed in 1.20 seconds.
29 results for "nsimsgdbhdr":
Your results are loading. Please wait...
nsIMsgDBHdr
Inherits from: nsISupports This interface is usually given to you in return to a query from the message database. There are utility functions that also return it though. For instance, msgHdrForCurrentMessage() will return the currently selected message's header. Headers are backed by the database: a call to these functions directly modifies the state of the database, although it is not saved until the database is committed. In clear, if you want to do a persistent change to a message header, such as marking it as read, or replied to, or whatever, you MUST do it through its corresponding nsIMsgFolder (msgHdr.folder) or nsIMsgDatabase (msgHdr.folder.msgDatabase). ...
nsIMsgDatabase
Gecko 1.9 (Firefox 3) Inherits from: nsIDBChangeAnnouncer Method overview void Open(in nsILocalFile aFolderName, in boolean aCreate, in boolean aLeaveInvalidDB); void forceFolderDBClosed(in nsIMsgFolder aFolder); void Close(in boolean aForceCommit); void Commit(in nsMsgDBCommit commitType); void ForceClosed(); void clearCachedHdrs; void resetHdrCacheSize(in unsigned long size); nsIMsgDBHdr GetMsgHdrForKey(in nsMsgKey key); nsIMsgDBHdr getMsgHdrForMessageID(in string messageID); boolean ContainsKey(in nsMsgKey key); nsIMsgDBHdr CreateNewHdr(in nsMsgKey key); void AddNewHdrToDB(in nsIMsgDBHdr newHdr, in boolean notify); nsIMsgDBHdr CopyHdrFromExistingHdr(in nsMsgKey key, in nsIMsgDBHdr existingHdr, in boolean addHdrToDB); void ListAllKeys(in nsMsgKeyArrayRef outputKeys); ...
...sgKey key); void AddNewHdrToDB(in nsIMsgDBHdr newHdr, in boolean notify); nsIMsgDBHdr CopyHdrFromExistingHdr(in nsMsgKey key, in nsIMsgDBHdr existingHdr, in boolean addHdrToDB); void ListAllKeys(in nsMsgKeyArrayRef outputKeys); Native code only! ...
...BHdr newHdr, in boolean notify); nsIMsgDBHdr CopyHdrFromExistingHdr(in nsMsgKey key, in nsIMsgDBHdr existingHdr, in boolean addHdrToDB); void ListAllKeys(in nsMsgKeyArrayRef outputKeys); Native code only! ...
...And 19 more matches
nsIMsgFolder
signed long flag); void onFlagChange(in unsigned long flag); void setPrefFlag(); nsIMsgFolder getFoldersWithFlag(in unsigned long flags, in unsigned long resultsize, out unsigned long numFolders); nsISupportsArray getAllFoldersWithFlag(in unsigned long aFlag); void getExpansionArray(in nsISupportsArray expansionArray); ACString getUriForMsg(in nsIMsgDBHdr msgHdr); void deleteMessages(in nsISupportsArray messages,in nsIMsgWindow msgWindow, in boolean deleteStorage, in boolean isMove, in nsIMsgCopyServiceListener listener, in boolean allowUndo); void copyMessages(in nsIMsgFolder srcFolder, in nsISupportsArray messages,in boolean isMove, in nsIMsgWindow msgWindow,in nsIMsgCopyServiceListener listener, in boolean isFolder, in boolean...
... void copyMessages(in nsIMsgFolder srcFolder, in nsISupportsArray messages,in boolean isMove, in nsIMsgWindow msgWindow,in nsIMsgCopyServiceListener listener, in boolean isFolder, in boolean allowUndo); void copyFolder(in nsIMsgFolder srcFolder, in boolean isMoveFolder,in nsIMsgWindow msgWindow, in nsIMsgCopyServiceListener listener ); void copyFileMessage(in nsIFile file, in nsIMsgDBHdr msgToReplace,in boolean isDraft, in unsigned long newMsgFlags,in nsIMsgWindow msgWindow,in nsIMsgCopyServiceListener listener); void acquireSemaphore(in nsISupports semHolder); void releaseSemaphore(in nsISupports semHolder); boolean testSemaphore(in nsISupports semHolder); void getNewMessages(in nsIMsgWindow aWindow, in nsIUrlListener aListener); void...
...ISupports semHolder); void getNewMessages(in nsIMsgWindow aWindow, in nsIUrlListener aListener); void writeToFolderCache(in nsIMsgFolderCache folderCache, in boolean deep); long getNumNewMessages(in boolean deep); void setNumNewMessages(in long numNewMessages); ACString generateMessageURI(in nsMsgKey msgKey); void addMessageDispositionState(in nsIMsgDBHdr aMessage,in nsMsgDispositionState aDispositionFlag); void markMessagesRead(in nsISupportsArray messages, in boolean markRead); void markAllMessagesRead(); void markMessagesFlagged(in nsISupportsArray messages, in boolean markFlagged); void markThreadRead(in nsIMsgThread thread); void setLabelForMessages(in nsISupportsArray messages, in nsMsgLabelValue ...
...And 11 more matches
nsIMsgThread
The nsIMsgFolder interface is used to interact with threads in Thunderbird. ...
... The nsIMsgFolder interface is used to interact with threads in Thunderbird. ...
... The nsIMsgFolder interface is used to interact with threads in Thunderbird. ...
...And 9 more matches
nsIDBChangeListener
ncer, typically through a nsIMsgDatabase. ...
...e so: someFolder.msgDatabase.AddListener(myListener); Alternately, you can access the message database through the nsIMsgDbView like so: gFolderDisplay.view.dbView.db.AddListener(myListener); Method overview void onHdrFlagsChanged(in nsIMsgDBHdr aHdrChanged, in unsigned long aOldFlags, in unsigned long aNewFlags, in nsIDBChangeListener aInstigator); void onHdrDeleted(in nsIMsgDBHdr aHdrChanged, in nsMsgKey aParentKey, in long aFlags, in nsIDBChangeListener aInstigator); void onHdrAdded(in nsIMsgDBHdr aHdrChanged, in nsMsgKey aParentKey, in long aFlags, in nsIDBChangeListener aInstigator); void onParentChanged(in nsMsgKey aKeyChanged, in nsMsgKey oldParent, in nsMsgKey newParent, in nsIDBChangeListener aInstigator); void onAnnouncerGoingAway(in nsI...
...er aInstigator); void onParentChanged(in nsMsgKey aKeyChanged, in nsMsgKey oldParent, in nsMsgKey newParent, in nsIDBChangeListener aInstigator); void onAnnouncerGoingAway(in nsIDBChangeAnnouncer instigator); void onReadChanged(in nsIDBChangeListener aInstigator); void onJunkScoreChanged(in nsIDBChangeListener aInstigator); void onHdrPropertyChanged(in nsIMsgDBHdr aHdrToChange, in unsigned long aOldFlags, in PRBool aPreChange, inout PRUint32 aStatus, in nsIDBChangeListener aInstigator); void onEvent(in nsIMsgDatabase aDB, in string aEvent); Methods onHdrFlagsChanged() Called when a message's flags change. void onHdrFlagsChanged(in nsIMsgDBHdr aHdrChanged, in unsigned long aOldFlags, in uns...
...And 4 more matches
AsyncTestUtils extended framework
ple.com"]} would result in four messages from John Doe to random recipients. Synthetic message sets The code that creates synthetic message sets returns instances of the SyntheticMessageSet class. This class not only holds references to the SyntheticMessage instances, but it also tracks what folders they were injected into as well as what folders you move them to. This allows you to get at the nsIMsgDBHdr instances directly. Keep in mind that the class is not magic and will lose track of the message headers if you manipulate them without referencing the message set. Accessing synthetic messages and headers synMessages [attribute] The JS list of SyntheticMessages held in the set. While you should not modify this list, you can get its length and read from it. getMsgHdr(aIndex) [function] Retr...
...s directly. Keep in mind that the class is not magic and will lose track of the message headers if you manipulate them without referencing the message set. Accessing synthetic messages and headers synMessages [attribute] The JS list of SyntheticMessages held in the set. While you should not modify this list, you can get its length and read from it. getMsgHdr(aIndex) [function] Retrieve the nsIMsgDBHdr at the given index. getMsgURI(aIndex) [function] Retrieve the URI of the message header at the given index. msgHdrList [getter] Return a JS list with all the nsIMsgDbHdrs for the messages that have been injected into folders. xpcomHdrArray [getter] Return an nsIMutableArray of the message headers that have been injected into folders. foldersWithMsgHdrs [getter] Return a list where each el...
...ex. msgHdrList [getter] Return a JS list with all the nsIMsgDbHdrs for the messages that have been injected into folders. xpcomHdrArray [getter] Return an nsIMutableArray of the message headers that have been injected into folders. foldersWithMsgHdrs [getter] Return a list where each element is a list with two sub-elements. The first is an nsIMsgFolder and the second is a JS list of all the nsIMsgDBHdrs for the messages that were inserted into the folder. This is used by routines that need to process the messages grouped by the folder they belong to, such as initiating message moves. foldersWithXpcomHdrArrays [getter] Same as foldersWithMsgHdrs but the second element in each sub-list is an nsIMutableArray instead of a JS list. Manipulating messages setRead(aBeRead) setRead(true) marks a...
nsIMsgCustomColumnHandler
Return value The string value that sorting will be done with. getSortLongForRow() If t...
... Return value The string value that sorting will be done with. getSortLongForRow() If the column displays a number, this will return the number...
...he nsIMsgDBView.removeColumnHandler() method: gDBView.removeColumnHandler("newColumn"); Method overview AString getSortStringForRow(in nsIMsgDBHdr aHdr); unsigned long getSortLongForRow(in nsIMsgDBHdr aHdr); boolean isString(); Methods getSortStringForRow() If the column displays a string, this will return the string that the column should be sorted by. AString getSortStringForRow(in nsIMsgDBHdr aHdr); Parameters aHdr The message's nsIMsgDBHdr. Return value The string value that sorting will be done with. getSortLongForRow() If the column displays a number, this will return the number that the column should be sorted by. unsigned long getSortLongForRow(in nsIMsgDBHdr aHdr); Parameters aHdr The message's nsIMsgDBHdr. Return value The long value that sorting will be done with. isStr...
nsIMsgMessageService
aCopyListener already knows about the destination folder. void CopyMessage(in string aSrcURI, in nsIStreamListener aCopyListener, in boolean aMoveMessage, in nsIUrlListener aUrlListener, in nsIMsgWindow...
... ...
... ...
nsIMsgSearchSession
; void AddAllScopes(in nsMsgSearchScopeValue attrib); void search(in nsIMsgWindow aWindow); void interruptSearch(); void pauseSearch(); void resumeSearch(); [noscript] nsMsgSearchType SetSearchParam(in nsMsgSearchType type, in voidPtr param); [noscript] void AddResultElement(in nsMsgResultElement element); boolean MatchHdr(in nsIMsgDBHdr aMsgHdr, in nsIMsgDatabase aDatabase); void addSearchHit(in nsIMsgDBHdr header, in nsIMsgFolder folder); Attributes Attribute Type Description searchTerms nsISupportsArray Readonly: numSearchTerms unsigned long Readonly: runningAdapter nsIMsgSearchAdapter Readonly: searchParam voidPtr Not scriptable and...
...er. ...
...pe, in voidPtr param); Parameters type param AddResultElement() [noscript] void AddResultElement(in nsMsgResultElement element); Parameters element MatchHdr() boolean MatchHdr(in nsIMsgDBHdr aMsgHdr, in nsIMsgDatabase aDatabase); Parameters aMsgHdr aDatabase addSearchHit() void addSearchHit(in nsIMsgDBHdr header, in nsIMsgFolder folder); Parameters header folder ...
Folders and message lists
y you're trying to do: gFolderDisplay.selectedCount: Returns the number of messages currently selected. gFolderDisplay.selectedMessage: Returns the first currently-selected message. When using this, be sure that there's only one selected message (or that you only care about the first one). Otherwise, use one of the methods described below. gFolderDisplay.selectedMessages: Returns an array of nsIMsgDBHdrs for the selected messages. If a collapsed thread is in there and working with collapsed threads is enabled, this will include the headers for the messages in that collapsed thread. gFolderDisplay.selectedMessageUris: Returns an array of the URIs corresponding to the selected messages. Like selectedMessages, this also includes messages in selected collapsed threads when so enabled. Changing th...
...Uris: Returns an array of the URIs corresponding to the selected messages. Like selectedMessages, this also includes messages in selected collapsed threads when so enabled. Changing the Current Message Selection In addition to getting the currently-selected messages, you can also change the selection: gFolderDisplay.selectMessage(msgHdr): Selects a single message, as specified by msgHdr (an nsIMsgDBHdr) and scrolls to its position in the message list. gFolderDisplay.selectMessages(arrayOfMsgHdrs): Selects all the messages in the array arrayOfMsgHdrs. Like selectMessage, this function will attempt to scroll the view so the entire selection is visible (which may not be possible for large selections). gFolderDisplay.clearSelection(): Clears the list of selected messages. Listing Messages in a ...
...} ...
nsIMessenger
Attribute...
...() Gets the nsIMsgMessageService in charge of a particular url. Message services are implemented for different protocols such as IMAP, POP3, or local mail sources. nsIMsgMessageService messageServiceFromURI(in ACString aUri); Parameters aUri The url of the message or attachment to get the service for. Return value The nsIMsgMessageService responsible for the url. msgHdrFromURI() nsIMsgDBHdr msgHdrFromURI(in ACString aUri); getMsgUriAtNavigatePos() Gets the message a particular position in the navigation history. For example, back-forward history needs a list of visited messages, and where it is in the list. Unfortunately, you must call this before navigating to a position, because calling this has the side effect of making us adjust our current history position, and not adding th...
nsIMsgDBView
CommandTypeValue command, out boolean selectable_p, out nsMsgViewCommandCheckStateValue selected_p); void viewNavigate(in nsMsgNavigationTypeValue motion, out nsMsgKey resultId, out nsMsgViewIndex resultIndex, out nsMsgViewIndex threadIndex, in boolean wrap); boolean navigateStatus(in nsMsgNavigationTypeValue motion); nsMsgKey getKeyAt(in nsMsgViewIndex index); nsIMsgDBHdr getMsgHdrAt(in nsMsgViewIndex index); nsIMsgFolder getFolderForViewIndex(in nsMsgViewIndex index); ACString getURIForViewIndex(in nsMsgViewIndex index); nsIMsgDBView cloneDBView(in nsIMessenger aMessengerInstance, in nsIMsgWindow aMsgWindow, in nsIMsgDBViewCommandUpdater aCommandUpdater); void getURIsForSelection([array, size_is(count)] out string uris, out uns...
...irstSelectedMsg nsMsgViewIndex Readonly: The index of the first selected message. nsMsgViewIndex is defined as a unsigned long in MailNewsTypes2.idl. msgFolder nsIMsgFolder Readonly: The current folder. viewFolder nsIMsgFolder URIForFirstSelectedMessage ACString Readonly: URL of the first selected message. hdrForFirstSelectedMessage nsIMsgDBHdr Readonly: Header of the first selected message. numSelected long Readonly: The number of messages currently selected. msgToSelectAfterDelete nsMsgViewIndex Readonly: The index of the message to select after the current one is deleted. nsMsgViewIndex is defined as a unsigned long in MailNewsTypes2.idl. currentlyDisplayedMessage nsMsgViewIndex Readonl...
nsIMsgFilterCustomAction
ly for the apply method, folder-based methods give correct * results and are preferred if available. Otherwise, be careful * that the action does correct notifications to maintain counts, and correct * manipulations of both IMAP and local non-database storage of message * metadata. ...
...This only * applies to after-the-fact (manual) filters. C...
nsIMsgIncomingServer
r aFolderResource, in ACString aURI); void getNewMessages(in nsIMsgFolder aFolder, in nsIMsgWindow aMsgWindow, in nsIUrlListener aUrlListener); ACString getPasswordWithUI(in AString aPromptString, in AString aPromptTitle, in nsIMsgWindow aMsgWindow, out boolean okayValue); AString getUnicharAttribute(in string name); AString getUnicharValue(in string attr); boolean isNewHdrDuplicate(in nsIMsgDBHdr aNewHdr); void onUserOrHostNameChanged(in ACString oldName, in ACString newName); void performBiff(in nsIMsgWindow aMsgWindow); void performExpand(in nsIMsgWindow aMsgWindow); void removeFiles(); void setBoolAttribute(in string name, in boolean value); void setBoolValue(in string attr, in boolean value); void setCharAttribute(in string name, in ACString value); void setCharValue(...
...ute( in string name ); Parameters name Missing Description Return value Missing Description Exceptions thrown Missing Exception Missing Description getUnicharValue() AString getUnicharValue( in string attr ); Parameters attr Missing Description Return value Missing Description Exceptions thrown Missing Exception Missing Description isNewHdrDuplicate() boolean isNewHdrDuplicate( in nsIMsgDBHdr aNewHdr ); Parameters aNewHdr Missing Description Return value Missing Description Exceptions thrown Missing Exception Missing Description onUserOrHostNameChanged() void onUserOrHostNameChanged( in ACString oldName, in ACString newName ); Parameters oldName Missing Description newName Missing Description Exceptions thrown Missing Exception Missing Description performBiff() void perf...
nsIMsgSearchTerm
c/ nsIMsgSearchTerm.idl Attributes attrib attribute nsMsgSearchAttribValue attrib; op attribute nsMsgSearchOpValue op; value attribute nsIMsgSearchValue value; booleanAnd attribute boolean booleanAnd; arbitraryHeader attribute ACString arbitraryHeader; hdrProperty /** * Not to be confused with arbitraryHeader, which is a header in the * rfc822 message. This is a property of the nsIMsgDBHdr, and may have * nothing to do the message headers, e.g., gloda-id. * value.str will be compared with nsIMsgHdr::GetProperty(hdrProperty). */ attribute ACString hdrProperty; customId /// identifier for a custom id used for this term, if any. attribute ACString customId; beginsGrouping attribute boolean beginsGrouping; endsGrouping attribute boolean endsGrouping; Methods matchRfc822S...
...sage in message store. * @param aLength length of message. * @param aCharset folder charset. ...
Creating a gloda message query
d. This is a locally unique identifier. folder: The folder the message is found in, as represented by a GlodaFolder instance. conversation: The conversation the message belongs to, as represented by a GlodaConversation instance. Somewhat magic attributes: headerMessageID: The contents of the Message-ID header of the message. You probably should not be using this. folderMessage: Return the nsIMsgDBHdr that corresponds to the message. An nsIMsgDBHdr is the low-level, old-school, Thunderbird XPCOM representation of a message. You should not need to use this unless you are dealing with other old-school code or you need to manipulate the state of a message. In the future, the STEEL layer should provide wrappers to make manipulation clean and fun. Note that this message may return "null" if gloda i...
... list and with duplicates removed. attachmentTypes: A list of the attachment mime types found on this message. Attributes provided by explattr.js: tags: A list of the nsIMsgTags applied to this message. starred: A boolean indicating whether this message is starred/flagged or not. read: A boolean indicating whether this message is read or not. Want a GlodaMessage when you already have an nsIMsgDBHdr? Gloda.getMessageCollectionForHeader(aMsrHdr, aListener, aData) returns a collection (with your provided listener and data). Keep in mind that gloda is not infallible and it's conceivable that your collection may end up with no messages in it. Have a GlodaMessage and want the rest of the messages in the conversation? glodaMessage.conversation.getMessagesCollection(aListener, aData) returns a c...
Message Interfaces
It is a child of nsIMsgHdr (see above). nsIMsgThread nsIMsgThread - this interface is used to interact with threads in Thunderbird. ...
...It is a child of nsIMsgHdr (see above). nsIMsgThread nsIMsgThread - this interface is used to interact with threads in Thunderbird. ...
Filter Incoming Mail
Filter Incoming Mail To filter incoming mail, the first step is to detect new messages inconming. The, you've got Components.interfaces.nsIMsgDBHdr from where you can modify the mail. By example, to modify the mail subject : var newMailListener = { msgAdded: function(aMsgHdr) { if( !aMsgHdr.isRead ) { // Here we are, a new mail has popped // let get a Javascript string object from the subject property // Querying mime conversion interface var mimeConvert = Components.classes["@mozilla.org/messenger/mimeconverter;1"] .getService(Components.interfaces.nsIMimeConverter); var subject = mimeConvert.decodeMimeHeader(aMsgHdr.subject, null, false, true); // Here with have a string to modify with Javascript. By example, setting it to lower case subje...
... You can take a look at a working code in the CapsKiller add-on repository. ...
Message Summary Database - Archive of obsolete content
it doesn't know about. If we were to replace Mork, we could do it at the MDB level (unlikely, because implementing the MDB interface on top of a different DB would be very hard), the nsIMsgDatabase level (probably the easiest), or we could invent a whole new database interface and change all the code that uses the nsIMsgDatabase interface. Message Headers The message header object implements the nsIMsgDBHdr interface. This includes a set of per-message flags, the more commonly used headers (e.g., subject, sender, from, to, cc, date, etc), and a few other attributes, e.g., keywords. There are a set of generic property methods so that core code and extensions can set attributes on msg headers without changing nsIMsgHdr.idl.Msg Threads We store thread information persistently in the database and expose...
Index
Mozilla › Tech › XPCOM › Index
operties for an composition of an outgoing message. 762 nsIMsgCustomColumnHandler Interfaces, Interfaces:Scriptable, XPCOM, XPCOM API Reference, XPCOM Interface Reference, thunderbird The nsIMsgCustomColumnHandler interface allows you to create custom handlers for columns. It can be used in the Thunderbird threadpane for extensions to overlay their own columns. 763 nsIMsgDBHdr Interfaces, Interfaces:Scriptable, NeedsContent, XPCOM API Reference, thunderbird The nsIMsgDBHdr interface describes headers for mail messages. 764 nsIMsgDBView Interfaces, Interfaces:Scriptable, Message Database, Message Windows, Messages, NeedsContent, NeedsMarkupWork, XPCOM API Reference, XPCOM Interface Reference, thunderbird The nsIMsgDBView interface handles ...
nsIMsgFilter
dex, in nsMsgSearchAttribValue attrib, in nsMsgSearchOpValue op, in nsIMsgSearchValue value, out boolean BooleanAND, out ACString arbitraryHeader ) appendTerm() void nsIMsgFilter::appendTerm (in nsIMsgSearchTerm term) createTerm() nsIMsgSearchTerm nsIMsgFilter::createTerm ( ) MatchHdr() void nsIMsgFilter::MatchHdr ( in nsIMsgDBHdr msgHdr, in nsIMsgFolder folder, in nsIMsgDatabase db, in string headers, in unsigned long headerSize, out boolean result ) logRuleHit() void nsIMsgFilter::logRuleHit ( in nsIMsgRuleAction aFilterAction, in nsIMsgDBHdr aHeader ) createAction() nsIMsgRuleAction nsIMsgFilter::createAction ( ) getActionAt() nsIMsgRuleAction nsIMsgFil...
nsIMsgFilterList
in AString name ) saveToFile() void nsIMsgFilterList::saveToFile ( in nsIOutputStream stream ) parseCondition() void nsIMsgFilterList::parseCondition ( in nsIMsgFilter aFilter, in string condition ) saveToDefaultFile() void nsIMsgFilterList::saveToDefaultFile ( ) applyFiltersToHdr() void nsIMsgFilterList::applyFiltersToHdr ( in nsMsgFilterTypeType filterType, in nsIMsgDBHdr msgHdr, in nsIMsgFolder folder, in nsIMsgDatabase db, in string headers, in unsigned long headerSize, in nsIMsgFilterHitNotify listener, in nsIMsgWindow msgWindow, in nsILocalFile aMessageFile ) writeInAttr() void nsIMsgFilterList::writeIntAttr ( in nsMsgFilterFileAttribValue att...
nsIMsgSearchCustomTerm
operators); match /** * Apply the custom search term to a message * * @param msgHdr header database reference representing the message * @param searchValue user-set value to use in the search * @param searchOp search operator (Contains, IsHigherThan, etc.) * * @return true if the term matches the message, else false */ boolean match(in nsIMsgDBHdr msgHdr, in AUTF8String searchValue, in nsMsgSearchOpValue searchOp); ...
nsIMsgSearchNotify
Defined in comm-central/ mailnews/ base/ search/ public/ nsIMsgSearchNotify.idl [scriptable, uuid(ca37784d-352b-4c39-8ccb-0abc1a93f681)] interface nsIMsgSearchNotify : nsISupports { void onSearchHit(in nsIMsgDBHdr header, in nsIMsgFolder folder); // notification that a search has finished. void onSearchDone(in nsresult status); /* * until we can encode searches with a URI, this will be an * out-of-bound way to connect a set of search terms to a datasource */ /* * called when a new search begins */ void onNewSearch(); }; ...
nsIMsgSearchScopeTerm
Defined in comm-central/ mailnews/ base/ search/ public/ nsIMsgSearchScopeTerm.idl [scriptable, uuid(934672c3-9b8f-488a-935d-87b4023fa0be)] interface nsIMsgSearchScopeTerm : nsISupports { nsIInputStream getInputStream(in nsIMsgDBHdr aHdr); void closeInputStream(); readonly attribute nsIMsgFolder folder; readonly attribute nsIMsgSearchSession searchSession; }; ...
XPCOM Interface Reference
backnsIMemoryReporternsIMemoryReporterManagernsIMenuBoxObjectnsIMessageBroadcasternsIMessageListenernsIMessageListenerManagernsIMessageSendernsIMessageWakeupServicensIMessengernsIMicrosummarynsIMicrosummaryGeneratornsIMicrosummaryObservernsIMicrosummaryServicensIMicrosummarySetnsIMimeConverternsIMimeHeadersnsIModulensIMsgAccountnsIMsgAccountManagerExtensionnsIMsgCompFieldsnsIMsgCustomColumnHandlernsIMsgDBHdrnsIMsgDBViewnsIMsgDBViewCommandUpdaternsIMsgDatabasensIMsgFilternsIMsgFilterCustomActionnsIMsgFilterListnsIMsgFoldernsIMsgHeaderParsernsIMsgIdentitynsIMsgIncomingServernsIMsgMessageServicensIMsgProtocolInfonsIMsgRuleActionnsIMsgSearchCustomTermnsIMsgSearchNotifynsIMsgSearchScopeTermnsIMsgSearchSessionnsIMsgSearchTermnsIMsgSearchValuensIMsgSendLaternsIMsgThreadnsIMsgWindownsIMsgWindowCommandsnsIMut...
XPCOM Interface Reference by grouping
nsIUpdateTimerManager nsIProgrammingLanguage Thunderbird Credentials nsIMsgAccountManagerExtension Element nsIEditorMailSupport Message nsIDBChangeAnnouncer nsIDBChangeListener nsIMessenger nsIMsgCompFields nsIMsgCustomColumnHandler nsIMsgDatabase nsIMsgDBHdr nsIMsgDBView nsIMsgDBViewCommandUpdater nsIMsgFolder nsIMsgIdentity nsIMsgMessageService nsIMsgSendLater nsIMsgThread nsIMsgWindow nsIMsgWindowCommands User History nsIBrowserHistory nsIBrowserSearchService nsIMicrosummary nsIMicrosummaryGenerator nsIMicrosummaryObserver nsIMicrosummarySe...
Index
time you open a folder (for example, registering a custom column handler. To do this you need to capture the select event of the folder [[XUL:tree|tree]] whose id is (conveniently) folderTree like so: 103 Filter Incoming Mail filter, incoming, mails, thunderbird To filter incoming mail, the first step is to detect new messages inconming. The, you've got Components.interfaces.nsIMsgDBHdr from where you can modify the mail. By example, to modify the mail subject : 104 Get Thunderbird version thunderbird On Thunderbird version 3.0b3pre and later, you can use the following snippet to get the Thunderbird version. (Version 3.0b3pre was the first build to include STEEL.) 105 Modify Folder Pane Display missing, thunderbird See https://addons.moz...
Demo Addon
FolderFlags.Inbox) we check whether the folder is the inbox. Then we store the folder name in a string to display it later on the screen and mark it with an * if it is the inbox. Afterwards, we check every folder for subfolders. We then go into each subfolder and start over. To list some messages of the folder we use: for each (let msgHdr in fixIterator(inbox.msgDatabase.EnumerateMessages(), Ci.nsIMsgDBHdr)) { if (++i >= 10 && lastMsgHdr != null) break; messages.push({ author: msgHdr.mime2DecodedAuthor, subject: msgHdr.mime2DecodedSubject, date: new Date(msgHdr.date/1000), }); //... } To get a collection of messages in the inbox, we use inbox.msgDatabase.EnumerateMessages(). Each message is a nsIMsgDBHdr. We iterate over the first ten of them and ext...