1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-11-29 11:24:11 +01:00
OwncloudContactsOfficial/formats/import_csv_gmail_connector.xml

230 lines
6.4 KiB
XML
Raw Normal View History

2013-09-20 16:24:29 +02:00
<?xml version='1.0' standalone='yes'?>
<!--
Parameters available
<import_core>
@brief: main parameters
<name></name>
@brief: Internal name
must match the xml file name with the pattern import_<name>_connector.xml
<display_name></display_name>
@brief: Display name
<type></type>
@brief: type (csv,vcard,ldif,...)
<active></active>
@brief: if 0, will not be used
<ignore_first_line><ignore_first_line/>
@brief: If the first line has titles (1 or true)
<delimiter></delimiter>
@brief: if empty, automatic search between ',', ';' and '\t'
<base_parsing></base_parsing>
@brief: parse by column name or column position
<expected_columns></expected_columns>
@brief: if parse by column position, how many columns are expected (use for automatic import)
</import_core>
<import_entry name="" position="" enabled="" separator="" remove="">
@brief: csv entry to look for
name: property name (if base_parsing is name)
position: property position (if base_parsing is position)
enabled: import_entry used or not
separator: string used to separate multiple values
remove: string to remove in the value
<altname lang=""></altname>
@brief: alternate property name
lang: language
value: other property name (if base_parsing is name)
<vcard_favourites></vcard_favourites>
@brief: entry value to look for in order to add the current VCard to the Favourites section
<vcard_entry property="" type="" prefix="" position="" group="" value="" separator="">
</vcard_entry>
@brief: VCard entry to add
property: VCard property name
type: VCard property type
prefix: prefix to add to the value
position: position of the element in the value
group: VCard group value
value: forced value
separator: separator string if position is set
<vcard_parameter property="" parameter="">
</vcard_parameter>
@brief: additional parameter for the VCard property
property: property name to add parameter to
parameter: parameter name
</import_entry>
-->
<!--
XML connector for gmail csv import
author: Nicolas Mora mail@babelouest.org
-->
<import_entries>
<import_core>
<name>csv_gmail</name>
<display_name>Gmail CSV</display_name>
<type>csv</type>
<active>1</active>
<ignore_first_line>1</ignore_first_line>
<base_parsing>name</base_parsing>
</import_core>
<import_entry name="Name" enabled="true">
<vcard_entry property="FN" >
</vcard_entry>
</import_entry>
<import_entry name="Family Name" enabled="true">
<vcard_entry property="N" position="0">
</vcard_entry>
</import_entry>
<import_entry name="Given Name" enabled="true">
<vcard_entry property="N" position="1">
</vcard_entry>
</import_entry>
<import_entry name="Additional Name" enabled="true">
<vcard_entry property="N" position="2">
</vcard_entry>
</import_entry>
<import_entry name="Name Prefix" enabled="true">
<vcard_entry property="N" position="3">
</vcard_entry>
</import_entry>
<import_entry name="Name Suffix" enabled="true">
<vcard_entry property="N" position="4">
</vcard_entry>
</import_entry>
<import_entry name="Initials" enabled="true">
<vcard_parameter property="N" parameter="initials">
</vcard_parameter>
</import_entry>
<import_entry name="Given Name Yomi" enabled="true">
<vcard_entry property="X-PHONETIC-FIRST-NAME">
</vcard_entry>
</import_entry>
<import_entry name="Family Name Yomi" enabled="true">
<vcard_entry property="X-PHONETIC-LAST-NAME">
</vcard_entry>
</import_entry>
<import_entry name="Nickname" enabled="true">
<vcard_entry property="NICKNAME">
</vcard_entry>
</import_entry>
<import_entry name="Birthday" enabled="true">
<vcard_entry property="BDAY">
</vcard_entry>
</import_entry>
<import_entry name="Gender" enabled="true">
<vcard_entry property="GENDER">
</vcard_entry>
</import_entry>
<import_entry name="Notes" enabled="true">
<vcard_entry property="NOTE">
</vcard_entry>
</import_entry>
<import_entry name="Group Membership" enabled="true" separator=":::" remove="*">
<vcard_favourites>Starred</vcard_favourites>
<vcard_entry property="CATEGORIES">
</vcard_entry>
</import_entry>
<import_entry name="E-mail 1 - Type" enabled="true" remove="*">
<vcard_entry property="EMAIL" group="email1" value="type">
</vcard_entry>
</import_entry>
<import_entry name="E-mail 1 - Value" enabled="true">
<vcard_entry property="EMAIL" group="email1">
</vcard_entry>
</import_entry>
<import_entry name="Phone 1 - Type" enabled="true" remove="*">
<vcard_entry property="PHONE" group="phone1" value="type">
</vcard_entry>
</import_entry>
<import_entry name="Phone 1 - Value" enabled="true">
<vcard_entry property="PHONE" group="phone1">
</vcard_entry>
</import_entry>
<import_entry name="Address 1 - Type" enabled="true" remove="*">
<vcard_entry property="ADR" group="address1" value="type">
</vcard_entry>
</import_entry>
<import_entry name="Address 1 - Street" enabled="true">
<vcard_entry property="ADR" group="address1" position="2">
</vcard_entry>
</import_entry>
<import_entry name="Address 1 - City" enabled="true">
<vcard_entry property="ADR" group="address1" position="3">
</vcard_entry>
</import_entry>
<import_entry name="Address 1 - PO Box" enabled="true">
<vcard_entry property="ADR" group="address1" position="0">
</vcard_entry>
</import_entry>
<import_entry name="Address 1 - Region" enabled="true">
<vcard_entry property="ADR" group="address1" position="4">
</vcard_entry>
</import_entry>
<import_entry name="Address 1 - Postal Code" enabled="true">
<vcard_entry property="ADR" group="address1" position="5">
</vcard_entry>
</import_entry>
<import_entry name="Address 1 - Country" enabled="true">
<vcard_entry property="ADR" group="address1" position="6">
</vcard_entry>
</import_entry>
<import_entry name="Address 1 - Extended Address" enabled="true">
<vcard_entry property="ADR" group="address1" position="1">
</vcard_entry>
</import_entry>
<import_entry name="Website 1 - Type" enabled="true" remove="*">
<vcard_entry property="URL" group="url1" value="type">
</vcard_entry>
</import_entry>
<import_entry name="Website 1 - Value" enabled="true">
<vcard_entry property="URL" group="url1">
</vcard_entry>
</import_entry>
<!--<import_entry property="" type="" prefix="" position="" enabled="true">
<vcard_entry property="" type="" prefix="" position="" image="">
</vcard_entry>
</import_entry>-->
</import_entries>