Variable: eudc-ldap-bbdb-conversion-alist

eudc-ldap-bbdb-conversion-alist is a customizable variable defined in eudc-vars.el.gz.

Value

((name . cn) (net . mail)
 (address eudc-bbdbify-address postaladdress "Address")
 (phone eudc-bbdbify-phone telephonenumber "Phone")
 (company eudc-bbdbify-company o))

Documentation

A mapping from BBDB to LDAP attributes.

This is a list of cons cells (BBDB-FIELD . SPEC-OR-LIST) where BBDB-FIELD is the name of a field that must be defined in your BBDB environment (standard field names are name, company, net, phone, address and notes). SPEC-OR-LIST is either a single SPEC or a list of SPECs. Lists of specs are valid only for the phone and address BBDB fields. SPECs are sexps which are evaluated:
  a string evaluates to itself,
  a symbol evaluates to the symbol value. Symbols naming LDAP attributes
    present in the record evaluate to the value of the field in the record,
  a form is evaluated as a function. The argument list may contain LDAP
    field names which eval to the corresponding values in the
    record. The form evaluation should return something appropriate for
    the particular BBDB-FIELD (see bbdb-create-internal).
    eudc-bbdbify-phone and eudc-bbdbify-address are provided as convenience
    functions to parse phones and addresses.

Source Code

;; Defined in /usr/src/emacs/lisp/net/eudc-vars.el.gz
(defcustom eudc-ldap-bbdb-conversion-alist
  '((name . cn)
    (net . mail)
    (address . (eudc-bbdbify-address postaladdress "Address"))
    (phone . (eudc-bbdbify-phone telephonenumber "Phone"))
    (company . (eudc-bbdbify-company o)))
  "A mapping from BBDB to LDAP attributes.
This is a list of cons cells (BBDB-FIELD . SPEC-OR-LIST) where
BBDB-FIELD is the name of a field that must be defined in your BBDB
environment (standard field names are `name', `company', `net', `phone',
`address' and `notes').  SPEC-OR-LIST is either a single SPEC or a list
of SPECs.  Lists of specs are valid only for the `phone' and `address'
BBDB fields.  SPECs are sexps which are evaluated:
  a string evaluates to itself,
  a symbol evaluates to the symbol value.  Symbols naming LDAP attributes
    present in the record evaluate to the value of the field in the record,
  a form is evaluated as a function.  The argument list may contain LDAP
    field names which eval to the corresponding values in the
    record.  The form evaluation should return something appropriate for
    the particular BBDB-FIELD (see `bbdb-create-internal').
    `eudc-bbdbify-phone' and `eudc-bbdbify-address' are provided as convenience
    functions to parse phones and addresses."
  :tag "BBDB to LDAP Attribute Names Mapping"
  :type '(repeat (cons :tag "Field Name"
		       (symbol :tag "BBDB Field")
		       (sexp :tag "Conversion Spec"))))