rem: var tFile = readMyPref(prefPrefix+".mailFile","string",""); if(tFile=="") tFile = readMyPref("tagzilla.default.file","string",""); 
add: /* 
context: function tzSendCmd(aCmd) {  var prefPrefix = "tagzilla."+gCurrentIdentity.key;  if(haveJSlib && readMyPref(prefPrefix+".mailAuto","bool",true)) {    var tFile = readMyPref(prefPrefix+".mailFile","string","");    if(tFile=="") tFile = readMyPref("tagzilla.default.file","string","");    if(readMyPref(prefPrefix+".mailPick","bool",false)) {      try {        var tag = tzRandTaglineFromFile(tFile);        var prefix = readMyPref("tagzilla.mail.prefix","string","")          .replace(/\\n/g,"\n");        var suffix = readMyPref("tagzilla.mail.suffix","string","")          .replace(/\\n/g,"\n");        var msgPane = document.getElementById("content-frame");        if(msgPane) {          var controller = document.commandDispatcher.getControllerForCommand('cmd_moveBottom');          controller.doCommand('cmd_moveBottom');          if(msgPane.editorShell) {            msgPane.editorShell.InsertText(prefix+tag+suffix);          }          else if(window.GetCurrentEditor)          {            var ed = window.GetCurrentEditor();            ed.insertText(prefix+tag+suffix);          }          else {            alert("I'm afraid I don't know how to insert taglines in this version\n"+                  "of Mozilla. File a bug on it, and use Clipboard Mode in the meantime.");          }        }        else alert("Arg");        eval(tzCmdActions[aCmd]);      }      catch(ex) {        //alert(getText("cantRead"));        dump(ex+"\n");        return;      }    }    else {      document.firstChild.setAttribute("tzPrefPrefix",prefPrefix); // hack, but it works      tzCmd=aCmd;      tagzillaWindow=toTagZilla(aCmd);      tagzillaWindow.addEventListener("unload",tzPickedTagline, true);    }  }  else {    eval(tzCmdActions[aCmd]);  }}
meta: 1647	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1647/9821683cafb9692d07af0ca1e99a2aef322f6db2/tagzillaComposeOverlay.js/clean/src/tagzilla/content/tagzillaComposeOverlay.js