rem: return mailInterface.BeginImport( success, error) ? true : false; 
add: return mailInterface.BeginImport( success, error, false) ? true : false; 
context: function ImportMail( module, success, error) {  if (top.progressInfo.importInterface || top.progressInfo.intervalState) {    error.data = gImportMsgsBundle.getString('ImportAlreadyInProgress');    return( false);  }  top.progressInfo.importSuccess = false;  var mailInterface = module.GetImportInterface( "mail");  if (mailInterface != null)    mailInterface = mailInterface.QueryInterface( Components.interfaces.nsIImportGeneric);  if (mailInterface == null) {    error.data = gImportMsgsBundle.getString('ImportMailBadModule');    return( false);  }  var loc = mailInterface.GetData( "mailLocation");  if (loc == null) {    // No location found, check to see if we can ask the user.    if (mailInterface.GetStatus( "canUserSetLocation") != 0) {      var filePicker = Components.classes["@mozilla.org/filepicker;1"].createInstance();      if (filePicker != null) {        filePicker = filePicker.QueryInterface( Components.interfaces.nsIFilePicker);        if (filePicker != null) {          try {            filePicker.init( top.window, gImportMsgsBundle.getString('ImportSelectMailDir'), Components.interfaces.nsIFilePicker.modeGetFolder);            filePicker.appendFilters( Components.interfaces.nsIFilePicker.filterAll);            filePicker.show();            if (filePicker.file && (filePicker.file.path.length > 0))              mailInterface.SetData( "mailLocation", CreateNewFileSpecFromPath( filePicker.file.path));            else              return( false);          } catch( ex) {            // don't show an error when we return!            return( false);          }        }        else {          error.data = gImportMsgsBundle.getString('ImportMailNotFound');          return( false);        }      }      else {        error.data = gImportMsgsBundle.getString('ImportMailNotFound');        return( false);      }    }    else {      error.data = gImportMsgsBundle.getString('ImportMailNotFound');      return( false);    }  }  if (mailInterface.WantsProgress()) {    if (mailInterface.BeginImport( success, error)) {      top.progressInfo.importInterface = mailInterface;      // top.intervalState = setInterval( "ContinueImport()", 100);      return true;    }    else      return false;  }  else    return mailInterface.BeginImport( success, error) ? true : false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a13c578c74a271d71c7bbffcad93448a91476ecd/importDialog.js/buggy/mailnews/import/resources/content/importDialog.js