rem: smimeComposefields.alwaysEncryptMessage = gCurrentIdentity.getBoolAttribute("encrypt_mail_always"); 
add: var encryptionPolicy = gCurrentIdentity.getIntAttribute("encryptionpolicy");  smimeComposefields.alwaysEncryptMessage = encryptionPolicy == 2;  
context: function GetSecurityInfo(){  var smimeComposefields;  var msgCompFields = gMsgCompose.compFields;  if (msgCompFields)  {    if (!msgCompFields.securityInfo)    {      smimeComposefields = Components.classes[smimeCompFieldsContractID].createInstance(ismimeCompFields);      if (smimeComposefields)      {        msgCompFields.securityInfo = smimeComposefields;        // set up the intial security state....        smimeComposefields.alwaysEncryptMessage = gCurrentIdentity.getBoolAttribute("encrypt_mail_always");        smimeComposefields.signMessage = gCurrentIdentity.getBoolAttribute("sign_mail");      }    }     else    {      smimeComposefields = msgCompFields.securityInfo;    }  } // if we have message compose fields...  return smimeComposefields}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/60fa225bd22308cc905e99d23d67ac841e4d5a63/msgCompSMIMEOverlay.js/buggy/mailnews/extensions/smime/resources/content/msgCompSMIMEOverlay.js