rem:  var name = gSearchView.getCellText(row,"nameCol");    SetState(escape(name), !isSubscribed); 
add: SetStateFromRow(row, !isSubscribed); 
context: function ReverseStateFromRow(row){    // to determine if the row is subscribed or not,    // we get the properties for the "subscribedCol" cell in the row    // and look for the "subscribed" property    // if the "subscribed" atom is in the list of properties    // we are subscribed    var properties = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);    gSearchView.getCellProperties(row, "subscribedCol", properties);    var isSubscribed = (properties.GetIndexOf(gSubscribedAtom) != -1);       var name = gSearchView.getCellText(row,"nameCol");    // we need to escape the name because    // some news servers have newsgroups with non ASCII names    // we need to escape those name before calling SetState()    SetState(escape(name), !isSubscribed);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ed57078c53eb33b666d98d2d39d6c4b670fda9d6/subscribe.js/clean/mailnews/base/resources/content/subscribe.js