[Project_owners] HELP: "check all folder for new msg" macro

Biju G C bijumaillist at yahoo.com
Fri Oct 17 00:00:20 EDT 2003

I got following mail from "Mario Ivankovits" <mario(at)ops.co.at> 

I tested this Macro in MOZ & TB. But could not find any effet.
I tried to reach <mario(at)ops.co.at> and <Mario.Ivankovits(at)ops.co.at> 
but both got "failure delivery" 

Can somebody tell me whether this macro is useful?

Date:	 Tue, 07 Oct 2003 20:34:52 +0200
From:	"Mario Ivankovits" 
Subject: "check all folder for new messages" macro

Hello !

Sorry, i havent managed how to add this directly to 

This macro sets the property "check folder for new message" on all 
folders (recusiv)

If you would like, you could add this to the macro exchange.

Thank you,

const MSG_FOLDER_FLAG_CHECK_NEW = 0x20000000

var accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"]

var allServers = accountManager.allServers;
var numServers = allServers.Count();

for (var i = 0; i < numServers; i++)
  var serversMsgFolders = allServers.GetElementAt(i)


function processFolder(folder)

  var subFolderEnumerator = folder.GetSubFolders();
  var done = false;
  while (!done)
    try {
      var element = subFolderEnumerator.currentItem();

      var msgFolder = element.QueryInterface(Components.interfaces.nsIMsgFolder);

    } catch (ex)  {
       done = true;

Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk

More information about the Project_owners mailing list