Updated to new field names

This commit is contained in:
Miles Lott 2001-02-04 09:03:53 +00:00
parent 5a4e1a11a1
commit 4d705f504e

View File

@ -27,26 +27,26 @@ class outlook_conv {
var $currentrecord; //used for buffering to allow uid lines to go first var $currentrecord; //used for buffering to allow uid lines to go first
var $outlook = array( var $outlook = array(
"Title" => "", "Title" => "TITLE",
"First Name" => "ab_firstname", "First Name" => "N_Given",
"Middle Name" => "", "Middle Name" => "N_Middle",
"Last Name" => "ab_lastname", "Last Name" => "N_Family",
"Suffix" => "", "Suffix" => "N_Suffix",
"Company" => "ab_company", //objectclass: organization "Company" => "ORG_Name", //objectclass: organization
"Department" => "", //objectclass: organizationalPerson "Department" => "ORG_Unit", //objectclass: organizationalPerson
"Job Title" => "ab_title", //objectclass: organizationalPerson "Job Title" => "TITLE", //objectclass: organizationalPerson
"Business Street" => "ab_address2", "Business Street" => "address2",
"Business Street 2" => "", "Business Street 2" => "",
"Business Street 3" => "", "Business Street 3" => "",
"Business City" => "", "Business City" => "",
"Business State" => "", "Business State" => "",
"Business Postal Code" => "", "Business Postal Code" => "",
"Business Country" => "", "Business Country" => "",
"Home Street" => "ab_street", "Home Street" => "ADR_Street",
"Home City" => "ab_city", "Home City" => "ADR_Locality",
"Home State" => "ab_state", "Home State" => "ADR_Region",
"Home Postal Code" => "ab_zip", "Home Postal Code" => "ADR_PostalCode",
"Home Country" => "", "Home Country" => "ADR_CountryName",
"Home Street 2" => "", "Home Street 2" => "",
"Home Street 3" => "", "Home Street 3" => "",
"Other Street" => "", "Other Street" => "",
@ -55,20 +55,20 @@ class outlook_conv {
"Other Postal Code" => "", "Other Postal Code" => "",
"Other Country" => "", "Other Country" => "",
"Assistant's Phone" => "", "Assistant's Phone" => "",
"Business Fax" => "ab_fax", "Business Fax" => "C_TEL",
"Business Phone" => "ab_wphone", "Business Phone" => "B_TEL",
"Business Phone 2" => "ab_ophone", "Business Phone 2" => "ophone",
"Callback" => "", "Callback" => "",
"Car Phone" => "", "Car Phone" => "",
"Company Main Phone" => "", "Company Main Phone" => "",
"Home Fax" => "", "Home Fax" => "",
"Home Phone" => "ab_hphone", "Home Phone" => "A.TEL",
"Home Phone 2" => "", //This will make another homePhone entry "Home Phone 2" => "", //This will make another homePhone entry
"ISDN" => "", "ISDN" => "",
"Mobile Phone" => "ab_mphone", //newPilotPerson "Mobile Phone" => "mphone", //newPilotPerson
"Other Fax" => "", "Other Fax" => "",
"Other Phone" => "", "Other Phone" => "",
"Pager" => "ab_pager", "Pager" => "pager",
"Primary Phone" => "", "Primary Phone" => "",
"Radio Phone" => "", "Radio Phone" => "",
"TTY/TDD Phone" => "", "TTY/TDD Phone" => "",
@ -77,11 +77,11 @@ class outlook_conv {
"Anniversary" => "", "Anniversary" => "",
"Assistant's Name" => "", //newPilotPerson "Assistant's Name" => "", //newPilotPerson
"Billing Information" => "", "Billing Information" => "",
"Birthday" => "ab_bday", "Birthday" => "bday",
"Categories" => "", "Categories" => "",
"Children" => "", "Children" => "",
"Directory Server" => "", "Directory Server" => "",
"E-mail Address" => "ab_email", "E-mail Address" => "D_EMAIL",
"E-mail Display Name" => "", "E-mail Display Name" => "",
"E-mail 2 Address" => "", "E-mail 2 Address" => "",
"E-mail 2 Display Name" => "", "E-mail 2 Display Name" => "",
@ -150,8 +150,8 @@ function outlook_end_record($buffer,$private="private") {
$thisname=""; $thisname="";
$thisvalu=""; $thisvalu="";
} }
$namelist = $namelist."\nINSERT INTO addressbook (ab_owner,ab_access,".$thisname; $namelist = $namelist."\nINSERT INTO addressbook (owner,".$thisname;
$valulist = $valulist."VALUES ('".$phpgw_info["user"]["account_id"]."','".$private."',".$thisvalu; $valulist = $valulist."VALUES ('".$phpgw_info["user"]["account_id"]."',".$thisvalu;
} elseif ($row==count($lines)-1) { } elseif ($row==count($lines)-1) {
if (!empty($name) && !empty($value)) { if (!empty($name) && !empty($value)) {
$thisname=$name.") "; $thisname=$name.") ";