rem: { 
context: function determineActionsForJunkMsgs(aView, aIndices){  var actions = { markRead: false, junkTargetFolder: null };  // we use some arbitrary message to determine the  // message server  var msgURI = aView.getURIForViewIndex(aIndices[0]);  var msgHdr = messenger.messageServiceFromURI(msgURI).messageURIToMsgHdr(msgURI);  var server = msgHdr.folder.server;  var spamSettings = server.spamSettings;  // note we will do moves/marking as read even if the spam  // feature is disabled, since the user has asked to use it  // despite the disabling  // note also that we will only act on messages which  // _the_current_run_ of the classifier has classified as  // junk, rather than on all junk messages in the folder  actions.markRead = spamSettings.markAsReadOnSpam;  actions.junkTargetFolder = null;  // move only when the corresponding setting is activated  // and the currently viewed folder is not the junk folder.  if (spamSettings.moveOnSpam && !(msgHdr.folder.flags & MSG_FOLDER_FLAG_JUNK))  {    var spamFolderURI = spamSettings.spamFolderURI;    if (!spamFolderURI)    {      // XXX TODO      // we should use nsIPromptService to inform the user of the problem,      // e.g. when the junk folder was accidentally deleted.      dump('determineActionsForJunkMsgs: no spam folder found, not moving.');    }    else    {      actions.junkTargetFolder = GetMsgFolderFromUri(spamFolderURI);    }  }  return actions;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/d5dfac5f0a658ee389bb37107621b0b006244d74/mailCommands.js/buggy/mail/base/content/mailCommands.js