add:  getCalendarManager().setCalendarPref(CalendarPublishObject.calendar, "remote-ics-path", CalendarPublishObject.remotePath);  
context: function publishEntireCalendarDialogResponse(CalendarPublishObject, aProgressDialog){    var itemArray = [];    var getListener = {        onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail)        {            publishItemArray(itemArray, CalendarPublishObject.remotePath, aProgressDialog);        },        onGetResult: function(aCalendar, aStatus, aItemType, aDetail, aCount, aItems)        {            if (!Components.isSuccessCode(aStatus)) {                aborted = true;                return;            }            if (aCount) {                for (var i=0; i<aCount; ++i) {                    // Store a (short living) reference to the item.                    var itemCopy = aItems[i].clone();                    itemArray.push(itemCopy);                }              }        }    };    aProgressDialog.onStartUpload();    var oldCalendar = CalendarPublishObject.calendar;    oldCalendar.getItems(Components.interfaces.calICalendar.ITEM_FILTER_ALL_ITEMS,                         0, null, null, getListener);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/8e3214e2abdbf84932493b8cc2239f75f4053bf3/publish.js/buggy/calendar/resources/content/publish.js