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.

Folders

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)

Document Tags and Contributors

Tags: 
 Contributors to this page: teoli, jenzed, DavidBienvenu
 Last updated by: jenzed,