rem: var showAllHeadersPref = pref.GetIntPref("mail.show_headers"); 
add: var showAllHeadersPref = pref.getIntPref("mail.show_headers"); 
context:     onStartHeaders: function()    {      // every time we start to redisplay a message, check the view all headers pref....      var showAllHeadersPref = pref.GetIntPref("mail.show_headers");      if (showAllHeadersPref == 2)      {        gViewAllHeaders = true;      }      else      {        if (gViewAllHeaders) // if we currently are in view all header mode, rebuild our header view so we remove most of the header data        {           hideHeaderView(gExpandedHeaderView);          gExpandedHeaderView = {};          initializeHeaderViewTables();         }                        gViewAllHeaders = false;      }      ClearCurrentHeaders();      gBuildAttachmentsForCurrentMsg = false;      gBuildAttachmentPopupForCurrentMsg = true;      ClearAttachmentTreeList();      ClearEditMessageButton();    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f1f4e0d7a57ab7bc6d826daa2e6141efd69e1dce/msgHdrViewOverlay.js/buggy/mailnews/base/resources/content/msgHdrViewOverlay.js