Folders

  • Revision slug: Folders
  • Revision title: Folders
  • Revision id: 128181
  • Created:
  • Creator: jenzed
  • Is current revision? No
  • Comment 1 words added, 1 words removed

Revision Content

The folder classes all implement the nsIMsgFolder interface. There are currently three folder classes - nsLocalMailFolder, nsImapMailFolder, and nsNewsFolder. They all inherit from nsMsgDBFolder, which implements a lot of the core functionality. RSS feeds are implemented by nsLocalMailFolder.

Each line in the folder pane corresponds to a folder object.


Folders have a number of interesting attributes:

  • parent
  • subfolder
  • server
  • uri
  • flags

and methods

  • getDatabase ( how to get a database of the messages in the folder.)
  • updateFolder (gets new messages for that folder, if applicable, e.g., pop3 inboxes, imap folders, news folders, rss folders)

Revision Source

<p>The folder classes all implement the <a class="external" href="http://mxr.mozilla.org/comm-central/source/mailnews/base/public/nsIMsgFolder.idl" title="http://mxr.mozilla.org/comm-central/source/mailnews/base/public/nsIMsgFolder.idl">nsIMsgFolder</a> interface. There are currently three folder classes - nsLocalMailFolder, nsImapMailFolder, and nsNewsFolder. They all inherit from nsMsgDBFolder, which implements a lot of the core functionality. RSS feeds are implemented by nsLocalMailFolder.</p>
<p>Each line in the folder pane corresponds to a folder object.</p>
<p><br>
Folders have a number of interesting attributes:</p>
<ul> <li>parent</li> <li>subfolder</li> <li>server</li> <li>uri</li> <li><a href="/en/flags" title="en/flags">flags</a></li>
</ul>
<p>and methods</p>
<ul> <li>getDatabase ( how to get a <a class="external" href="http://mxr.mozilla.org/mailnews/source/mailnews/db/msgdb/public/nsIMsgDatabase.idl#122">database</a> of the messages in the folder.)</li> <li>updateFolder (gets new messages for that folder, if applicable, e.g., pop3 inboxes, imap folders, news folders, rss folders)</li>
</ul>
Revert to this revision