rem: failedCount++; lastError = aStatus; 
add: if (aStatus == Components.interfaces.calIErrors.DUPLICATE_ID) { duplicateCount++; } else { failedCount++; lastError = aStatus; } 
context:         onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) {            count++;            if (!Components.isSuccessCode(aStatus)) {                failedCount++;                lastError = aStatus;            }            // See if it is time to end the calendar's batch.            if (count == aItems.length) {                destCal.endBatch();                if (failedCount) {                    var msg = calGetString("calendar", "importItemsFailed",                                           [failedCount, lastError.toString()]);                    showError(msg);                }            }        }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/9a4a610f46e352dc9f61d73f19ec14fa438d1452/import-export.js/buggy/calendar/base/content/import-export.js