Folders

  • Revision slug: Folders
  • Revision title: Folders
  • Revision id: 128185
  • Created:
  • Creator: jenzed
  • Is current revision? Yes
  • Comment no wording changes

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 - <a class=" external" href="http://mxr.mozilla.org/comm-central/source/mailnews/local/src/nsLocalMailFolder.cpp" title="http://mxr.mozilla.org/comm-central/source/mailnews/local/src/nsLocalMailFolder.cpp">nsLocalMailFolder</a>, <a class=" external" href="http://mxr.mozilla.org/comm-central/source/mailnews/imap/src/nsImapMailFolder.cpp" title="http://mxr.mozilla.org/comm-central/source/mailnews/imap/src/nsImapMailFolder.cpp">nsImapMailFolder</a>, and <a class=" external" href="http://mxr.mozilla.org/comm-central/source/mailnews/news/src/nsNewsFolder.cpp" title="http://mxr.mozilla.org/comm-central/source/mailnews/news/src/nsNewsFolder.cpp">nsNewsFolder</a>. They all inherit from <a class=" external" href="http://mxr.mozilla.org/comm-central/source/mailnews/base/util/nsMsgDBFolder.cpp" title="http://mxr.mozilla.org/comm-central/source/mailnews/base/util/nsMsgDBFolder.cpp">nsMsgDBFolder</a>, which implements a lot of the core functionality. RSS feeds are implemented by <a class=" external" href="http://mxr.mozilla.org/comm-central/source/mailnews/local/src/nsLocalMailFolder.cpp" title="http://mxr.mozilla.org/comm-central/source/mailnews/local/src/nsLocalMailFolder.cpp">nsLocalMailFolder</a>.</p>
<p>Each line in the folder pane corresponds to a folder object.</p>
<p>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/comm-central/source/mailnews/db/msgdb/public/nsIMsgDatabase.idl" title="http://mxr.mozilla.org/comm-central/source/mailnews/db/msgdb/public/nsIMsgDatabase.idl">database</a> of the messages in the folder.)</li> <li><a class=" external" href="http://mxr.mozilla.org/comm-central/source/mailnews/base/util/nsMsgDBFolder.cpp#2958" title="http://mxr.mozilla.org/comm-central/source/mailnews/base/util/nsMsgDBFolder.cpp#2958">updateFolder</a> (gets new messages for that folder, if applicable, e.g., pop3 inboxes, imap folders, news folders, rss folders)</li>
</ul>
Revert to this revision