rem: debug("folder for new feed " + feedProperties.feedName + " doesn't exist; creating"); debug("creating " + feedProperties.feedName + "as child of " + server.rootMsgFolder + "\n"); server.rootMsgFolder.createSubfolder(feedProperties.feedName, getMessageWindow()); folder = server.rootMsgFolder.FindSubFolder(feedProperties.feedName); 
add: debug("folder for new feed " + feed.name + " doesn't exist; creating"); debug("creating " + feed.name + "as child of " + server.rootMsgFolder + "\n"); server.rootMsgFolder.createSubfolder(feed.name, getMessageWindow()); folder = server.rootMsgFolder.FindSubFolder(feed.name); 
context: function doAdd() {    var userAddedFeed = false;     var feedProperties = { feedName: "", feedLocation: "", result: userAddedFeed};    feedProperties = openFeedEditor(feedProperties);    // if the user hit cancel, exit without doing anything    if (!feedProperties.result)      return;    if (!feedProperties.feedLocation)        return;    const DEFAULT_FEED_TITLE = "feed title";    const DEFAULT_FEED_URL = "feed location";    feed = new Feed(feedProperties.feedLocation || DEFAULT_FEED_URL);    feed.download(false, false);    if (!feedProperties.feedName)        feedProperties.feedName = DEFAULT_FEED_TITLE;    var server = getIncomingServer();    var folder;    try {        //var folder = server.rootMsgFolder.FindSubFolder(feed.name);        folder = server.rootMsgFolder.getChildNamed(feedProperties.feedName);    }    catch(e) {        // If we're here, it's probably because the folder doesn't exist yet,        // so create it.        debug("folder for new feed " + feedProperties.feedName + " doesn't exist; creating");				debug("creating " + feedProperties.feedName + "as child of " + server.rootMsgFolder + "\n");        server.rootMsgFolder.createSubfolder(feedProperties.feedName, getMessageWindow());        folder = server.rootMsgFolder.FindSubFolder(feedProperties.feedName);        var msgdb = folder.getMsgDatabase(null);        var folderInfo = msgdb.dBFolderInfo;        folderInfo.setCharPtrProperty("feedUrl", feedProperties.feedLocation);    }    // XXX This should be something like "subscribe to feed".		dump ("feed name = " + feedProperties.feedName + "\n");    addFeed(feedProperties.feedLocation, feedProperties.feedName, null, folder);    // XXX Maybe we can combine this with the earlier download?    feed.download();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/973fab624eea47740ba37f2b7e4def92548fafe3/subscriptions.js/buggy/mail/extensions/newsblog/content/subscriptions.js