rem: var feeds = getSubscriptionsList(); 
add: var feeds = getSubscriptionsList(gRSSServer); 
context: function doRemove() {    var tree = document.getElementById('subscriptions');    var item = tree.view.getItemAtIndex(tree.view.selection.currentIndex);    var resource = rdf.GetResource(item.id);    var feed = new Feed(resource);    var ds = getSubscriptionsDS();        // remove the feed from the subscriptions ds    var feeds = getSubscriptionsList();    var index = feeds.IndexOf(resource);    if (index != -1)        feeds.RemoveElementAt(index, false);    // remove the feed property string from the folder data base    var currentFolder = ds.GetTarget(resource, FZ_DESTFOLDER, true);    var currentFolderURI = currentFolder.QueryInterface(Components.interfaces.nsIRDFResource).Value;    currentFolder = rdf.GetResource(currentFolderURI).QueryInterface(Components.interfaces.nsIMsgFolder);        var feedUrl = ds.GetTarget(resource, DC_IDENTIFIER, true);        ds.Unassert(resource, DC_IDENTIFIER, feedUrl, true);    feedUrl = feedUrl ? feedUrl.QueryInterface(Components.interfaces.nsIRDFLiteral).Value : "";    updateFolderFeedUrl(currentFolder, feedUrl, true); // remove the old url    // Remove all assertions about the feed from the subscriptions database.    removeAssertions(ds, resource);    ds.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource).Flush(); // flush any changes    // Remove all assertions about items in the feed from the items database.    var itemds = getItemsDS();    feed.invalidateItems();    feed.removeInvalidItems();    itemds.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource).Flush(); // flush any changes    // If we don't have any more subscriptions pointing into    // this folder, then I think we should offer to delete it...    // Cheat and look at the feed url property to see if anyone else is still using the feed...    // you could also accomplish this by looking at some properties in the data source...    var msgdb = currentFolder.QueryInterface(Components.interfaces.nsIMsgFolder).getMsgDatabase(null);    var folderInfo = msgdb.dBFolderInfo;    var oldFeedUrl = folderInfo.getCharPtrProperty("feedUrl");    if (!oldFeedUrl) // no more feeds pointing to the folder?    {      try {        var openerResource = gRSSServer.rootMsgFolder.QueryInterface(Components.interfaces.nsIRDFResource);        var folderResource = currentFolder.QueryInterface(Components.interfaces.nsIRDFResource);        window.opener.messenger.DeleteFolders(window.opener.GetFolderDatasource(), openerResource, folderResource);      } catch (e) { }    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/002bf2393818a5080a3d8b514c17631f7220102f/subscriptions.js/clean/mail/extensions/newsblog/content/subscriptions.js