rem: var msgURI = GetLoadedMessage();  if (msgURI && !(/type=application\/x-message-display/.test(msgURI))) 
add: var msgHdr = msgHdrForCurrentMessage(); if (msgHdr) 
context: function setMsgHdrPropertyAndReload(aProperty, aValue){  // we want to get the msg hdr for the currently selected message  // change the appropiate property on it then reload the message  var msgURI = GetLoadedMessage();  if (msgURI && !(/type=application\/x-message-display/.test(msgURI)))  {    var msgHdr = messenger.msgHdrFromURI(msgURI);    if (msgHdr)    {      msgHdr.setUint32Property(aProperty, aValue);      MsgReload();    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/81bb1080a4913eec0a1cb2b9084eec3690c1c3be/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js