rem: filePicker.init( top.window, GetBundleString( 'ImportSelectMailDir'), Components.interfaces.nsIFilePicker.modeGetFolder); 
add: filePicker.init( top.window, gImportMsgsBundle.getString('ImportSelectMailDir'), Components.interfaces.nsIFilePicker.modeGetFolder); 
context: function ImportMail( module, success, error) {	if (top.progressInfo.importInterface || top.progressInfo.intervalState) {		error.data = GetBundleString( '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 = GetBundleString( '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, GetBundleString( '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 = GetBundleString( 'ImportMailNotFound');					return( false);				}			}			else {				error.data = GetBundleString( 'ImportMailNotFound');				return( false);			}		}		else {			error.data = GetBundleString( '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: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a7a6aaec82021225369a825c4902d7f206319316/importDialog.js/buggy/mailnews/import/resources/content/importDialog.js