if (folder.hasNewMessages) 
if (folder.hasNewMessages && !(folder.flags & MSG_FOLDER_FLAG_VIRTUAL)) 
function prefillAlertInfo(){  // unwrap all the args....  // arguments[0] --> array of folders with new mail  // arguments[1] --> the observer to call back with notifications about the alert  // arguments[2] --> user initiated boolean. true if the user initiated opening the alert   //                 (which means skip the fade effect and don't auto close the alert)  // arguments[3] --> the alert origin returned by the look and feel  var foldersWithNewMail = window.arguments[0];    gAlertListener = window.arguments[1];  gUserInitiated = window.arguments[2];  gOrigin = window.arguments[3];  // for now just grab the first folder which should be a root folder  // for the account that has new mail.   var rootFolder = foldersWithNewMail.GetElementAt(0).QueryInterface(Components.interfaces.nsIWeakReference).QueryReferent(Components.interfaces.nsIMsgFolder);  // generate an account label string based on the root folder  var label = document.getElementById('alertTitle');  var totalNumNewMessages = rootFolder.getNumNewMessages(true);  label.value = document.getElementById('bundle_messenger').getFormattedString(totalNumNewMessages == 1 ? "newBiffNotification_message" : "newBiffNotification_messages",                                                                                      [rootFolder.prettiestName, totalNumNewMessages]);  // this is really the root folder and we have to walk through the list to find the real folder that has new mail in it...:(  var allFolders = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);  rootFolder.ListDescendents(allFolders);  var numFolders = allFolders.Count();  var folderSummaryInfoEl = document.getElementById('folderSummaryInfo');  folderSummaryInfoEl.mMaxMsgHdrsInPopup = gNumNewMsgsToShowInAlert;  for (var folderIndex = 0; folderIndex < numFolders; folderIndex++)  {    var folder = allFolders.GetElementAt(folderIndex).QueryInterface(Components.interfaces.nsIMsgFolder);    if (folder.hasNewMessages)    {      var asyncFetch = {};      folderSummaryInfoEl.parseFolder(folder, new urlListener(folder), asyncFetch);      if (asyncFetch.value)        gPendingPreviewFetchRequests++;    }  }}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/e4d10fd24e4f692c4268f2dfe507e67b1822281f/newmailalert.js/clean/mail/base/content/newmailalert.js