rem:   if (IsSpecialFolder(folder, MSG_FOLDER_FLAG_TRASH | MSG_FOLDER_FLAG_SENTMAIL | MSG_FOLDER_FLAG_DRAFTS | MSG_FOLDER_FLAG_QUEUE | MSG_FOLDER_FLAG_TEMPLATES)) 
add:   if (IsSpecialFolder(folder, MSG_FOLDER_FLAG_TRASH | MSG_FOLDER_FLAG_SENTMAIL | MSG_FOLDER_FLAG_DRAFTS | MSG_FOLDER_FLAG_QUEUE | MSG_FOLDER_FLAG_TEMPLATES | MSG_FOLDER_FLAG_JUNK)) 
context: function FindNextChildFolder(folder){  // if there is unread mail in the trash, sent, drafts, unsent messages  // or templates folders, we ignore it  // when doing cross folder "next" navigation  if (IsSpecialFolder(folder, MSG_FOLDER_FLAG_TRASH | MSG_FOLDER_FLAG_SENTMAIL | MSG_FOLDER_FLAG_DRAFTS | MSG_FOLDER_FLAG_QUEUE | MSG_FOLDER_FLAG_TEMPLATES))    return null;  if (folder.getNumUnread(false) > 0)    return folder;  if (folder.getNumUnread(true) > 0) {    var subFolders = GetSubFoldersInFolderPaneOrder(folder);    for (var i = 0; i < subFolders.length; i++) {      folder = FindNextChildFolder(subFolders[i]);      if (folder)        return folder;    }  }  return null;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/f038fc5fb4f450f7fc94ebb61c082dac4f7e3d30/msgViewNavigation.js/clean/mailnews/base/resources/content/msgViewNavigation.js