Commit f72576dd authored by CardBook's avatar CardBook

version 28.2

parent 6af22fae
if ("undefined" == typeof(wdw_addressbooksAdd)) {
Components.utils.import("resource:///modules/mailServices.js");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource:///modules/mailServices.js");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var wdw_addressbooksAdd = {
......
if ("undefined" == typeof(wdw_addressbooksEdit)) {
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var wdw_addressbooksEdit = {
......
if ("undefined" == typeof(wdw_newGoogleToken)) {
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var wdw_newGoogleToken = {
......
if ("undefined" == typeof(ovl_attachments)) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var ovl_attachments = {
......
if ("undefined" == typeof(ovl_attachvCard)) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var ovl_attachvCard = {
......
if ("undefined" == typeof(cardbookAutocomplete)) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var cardbookAutocomplete = {
......
if ("undefined" == typeof(cardbookBirthdaysUtils)) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/AddonManager.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/AddonManager.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/AddonManager.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var cardbookBirthdaysUtils = {
lBirthdayList : [],
......@@ -152,7 +159,12 @@ if ("undefined" == typeof(cardbookBirthdaysUtils)) {
var calICalendar = Components.interfaces.calICalendar;
var startRange = new Date(lBirthdayDate.getTime() - (24 * 60 * 60 * 1000));
var endRange = new Date(lBirthdayDate.getTime() + (24 * 60 * 60 * 1000));
Components.utils.import("resource://calendar/modules/calUtils.jsm");
try {
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
}
catch(e) {
Components.utils.import("resource://calendar/modules/calUtils.jsm");
}
startRange = cal.jsDateToDateTime(startRange);
endRange = cal.jsDateToDateTime(endRange);
aCalendar1.getItems(calICalendar.ITEM_FILTER_TYPE_EVENT, 0, startRange, endRange, getListener);
......
if ("undefined" == typeof(ovl_birthdays)) {
Components.utils.import("resource://gre/modules/AddonManager.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource://gre/modules/AddonManager.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource://gre/modules/AddonManager.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var ovl_birthdays = {
lTimerPopup : null,
......
if ("undefined" == typeof(wdw_birthdayList)) {
Components.utils.import("resource:///modules/mailServices.js");
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/AddonManager.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/AddonManager.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource:///modules/mailServices.js");
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/AddonManager.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var wdw_birthdayList = {
......
if ("undefined" == typeof(wdw_birthdaySync)) {
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var wdw_birthdaySync = {
lTimerSync : null,
......
if ("undefined" == typeof(wdw_cardEdition)) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/FormHistory.jsm");
Components.utils.import("resource://gre/modules/AddonManager.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/FormHistory.jsm");
ChromeUtils.import("resource://gre/modules/AddonManager.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/FormHistory.jsm");
Components.utils.import("resource://gre/modules/AddonManager.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var wdw_cardEdition = {
......
......@@ -98,7 +98,7 @@
</groupbox>
<groupbox id="categoriesReadOnlyGroupbox">
<caption id="categoriesLabel" label="&categoriesGroupboxLabel;" class="header"/>
<textbox id="categoriesTextBox" flex="1" style="min-height:36px;"/>
<textbox id="categoriesTextBox" flex="1" style="min-height:36px;" readonly="true"/>
</groupbox>
<groupbox id="categoriesReadWriteGroupbox" flex="1">
<caption label="&categoriesGroupboxLabel;" class="header"/>
......
if ("undefined" == typeof(wdw_imageEdition)) {
Components.utils.import("resource://gre/modules/Services.jsm");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
}
var wdw_imageEdition = {
......
if ("undefined" == typeof(cardbookCardParser)) {
Components.utils.import("resource://gre/modules/Services.jsm");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
}
function cardbookCardParser(vCardData, vSiteUrl, vEtag, vDirPrefId) {
this._init();
......
......@@ -12,7 +12,12 @@
// "DDMMYYYY"
// "MMDDYYYY"
if ("undefined" == typeof(cardbookDates)) {
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var cardbookDates = {
......
if ("undefined" == typeof(cardbookDiscovery)) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var cardbookDiscovery = {
......
if ("undefined" == typeof(cardbookElementTools)) {
Components.utils.import("resource:///modules/mailServices.js");
Components.utils.import("resource://gre/modules/Services.jsm");
try {
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource://gre/modules/Services.jsm");
}
catch(e) {
Components.utils.import("resource:///modules/mailServices.js");
Components.utils.import("resource://gre/modules/Services.jsm");
}
var cardbookElementTools = {
......
if ("undefined" == typeof(cardbookIndexedDB)) {
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var cardbookIndexedDB = {
......
if ("undefined" == typeof(cardBookObserver)) {
Components.utils.import("resource://gre/modules/Services.jsm");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
}
var cardBookPrefObserverRepository = {
registerAll: function(aPrefObserver) {
......
if ("undefined" == typeof(cardbookPasswordManager)) {
Components.utils.import("resource://gre/modules/Services.jsm");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
}
var cardbookPasswordManager = {
......
var EXPORTED_SYMBOLS = ["cardbookRepository"];
Components.utils.import("resource://gre/modules/Services.jsm");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
}
var cardbookRepository = {
cardbookDatabase : {},
......
if ("undefined" == typeof(cardbookSynchronization)) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/NetUtil.jsm");
Components.utils.import("resource://gre/modules/FileUtils.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/NetUtil.jsm");
ChromeUtils.import("resource://gre/modules/FileUtils.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/NetUtil.jsm");
Components.utils.import("resource://gre/modules/FileUtils.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var cardbookSynchronization = {
......
if ("undefined" == typeof(cardbookTypes)) {
Components.utils.import("resource://gre/modules/Services.jsm");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
}
var cardbookTypes = {
......
if ("undefined" == typeof(cardbookUtils)) {
Components.utils.import("resource:///modules/mailServices.js");
Components.utils.import("resource://gre/modules/Services.jsm");
try {
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource://gre/modules/Services.jsm");
}
catch(e) {
Components.utils.import("resource:///modules/mailServices.js");
Components.utils.import("resource://gre/modules/Services.jsm");
}
var cardbookUtils = {
......@@ -1676,6 +1682,15 @@ if ("undefined" == typeof(cardbookUtils)) {
return result;
},
getFirstAvailableAccount: function() {
for (var i = 0; i < cardbookRepository.cardbookAccounts.length; i++) {
if (cardbookRepository.cardbookAccounts[i][1] && cardbookRepository.cardbookAccounts[i][5] && cardbookRepository.cardbookAccounts[i][6] != "SEARCH") {
return cardbookRepository.cardbookAccounts[i][4];
}
}
return "-1";
},
isFileAlreadyOpen: function(aAccountPath) {
for (var i = 0; i < cardbookRepository.cardbookAccounts.length; i++) {
if (cardbookRepository.cardbookAccounts[i][1] && cardbookRepository.cardbookAccounts[i][5] && cardbookRepository.cardbookAccounts[i][6] == "FILE") {
......
if ("undefined" == typeof(cardbookWebDAV)) {
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
Components.utils.import("resource://gre/modules/Services.jsm");
if (Services.vc.compare(Services.appinfo.version, "60.0") <= 0) {
try {
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
}
catch(e) {
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
Components.utils.import("resource://gre/modules/Services.jsm");
}
if (Services.vc.compare(Services.appinfo.version, "60.0") < 0) {
Components.utils.importGlobalProperties(["XMLHttpRequest"]);
}
......
if ("undefined" == typeof(ovl_collected)) {
Components.utils.import("resource:///modules/jsmime.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource:///modules/jsmime.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource:///modules/jsmime.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var ovl_collected = {
......
if ("undefined" == typeof(wdw_cardbookConfiguration)) {
Components.utils.import("resource:///modules/mailServices.js");
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/AddonManager.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/AddonManager.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource:///modules/mailServices.js");
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/AddonManager.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var wdw_cardbookConfiguration = {
......
// toggleAddressPicker
Components.utils.import("resource://gre/modules/Services.jsm");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
}
(function() {
// Keep a reference to the original function.
var _original = toggleAddressPicker;
......
if ("undefined" == typeof(wdw_cardbookContactsSidebar)) {
Components.utils.import("resource:///modules/mailServices.js");
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource:///modules/mailServices.js");
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var CardBookResultsPaneObserver = {
onDragStart: function (aEvent, aXferData, aDragAction) {
......
if ("undefined" == typeof(wdw_csvTranslator)) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var wdw_csvTranslator = {
......
if ("undefined" == typeof(ovl_filters)) {
Components.utils.import("resource:///modules/mailServices.js");
Components.utils.import("resource:///modules/jsmime.jsm");
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/jsmime.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource:///modules/mailServices.js");
Components.utils.import("resource:///modules/jsmime.jsm");
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var ovl_filters = {
......
if ("undefined" == typeof(wdw_findDuplicates)) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var wdw_findDuplicates = {
......
if ("undefined" == typeof(ovl_formatEmailCorrespondents)) {
Components.utils.import("resource://gre/modules/Services.jsm");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
}
var ovl_formatEmailCorrespondents = {
......
if ("undefined" == typeof(ovl_cardbookLayout)) {
Components.utils.import("resource://gre/modules/Services.jsm");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
}
var ovl_cardbookLayout = {
......
if ("undefined" == typeof(wdw_cardbookEventContacts)) {
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var wdw_cardbookEventContacts = {
allEvents: [],
......@@ -275,7 +281,12 @@ if ("undefined" == typeof(wdw_cardbookEventContacts)) {
},
load: function () {
Components.utils.import("resource://calendar/modules/calUtils.jsm");
try {
ChromeUtils.import("resource://calendar/modules/calUtils.jsm");
}
catch(e) {
Components.utils.import("resource://calendar/modules/calUtils.jsm");
}
var strBundle = document.getElementById("cardbook-strings");
wdw_cardbookEventContacts.emailArray = window.arguments[0].listOfEmail;
wdw_cardbookEventContacts.attendeeId = window.arguments[0].attendeeId;
......
if ("undefined" == typeof(cardbookListConversion)) {
Components.utils.import("resource:///modules/jsmime.jsm");
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource:///modules/jsmime.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource:///modules/jsmime.jsm");
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
function cardbookListConversion(aEmails, aIdentity) {
this.emailResult = [];
......
if ("undefined" == typeof(ovl_cardbookFindEmails)) {
Components.utils.import("resource:///modules/gloda/msg_search.js");
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource:///modules/gloda/msg_search.js");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource:///modules/gloda/msg_search.js");
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var ovl_cardbookFindEmails = {
......
if ("undefined" == typeof(ovl_cardbookFindEvents)) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/AddonManager.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/AddonManager.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/AddonManager.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var ovl_cardbookFindEvents = {
......
if ("undefined" == typeof(ovl_cardbookMailContacts)) {
Components.utils.import("resource:///modules/gloda/msg_search.js");
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/AddonManager.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
try {
ChromeUtils.import("resource:///modules/gloda/msg_search.js");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/AddonManager.jsm");
ChromeUtils.import("chrome://cardbook/content/cardbookRepository.js");
}
catch(e) {
Components.utils.import("resource:///modules/gloda/msg_search.js");
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/AddonManager.jsm");
Components.utils.import("chrome://cardbook/content/cardbookRepository.js");
}
var ovl_cardbookMailContacts = {
knownContacts: false,
......@@ -28,12 +36,16 @@ if ("undefined" == typeof(ovl_cardbookMailContacts)) {
return cardbookRepository.isEmailRegistered(aEmail, ovl_cardbookMailContacts.getIdentityKey());
},
addToCardBook: function(aDirPrefId) {
addToCardBook: function(aDirPrefId, aEmailNode) {
try {
var myNewCard = new cardbookCardParser();
myNewCard.dirPrefId = aDirPrefId;