``Output filters'' are used to export BBDB information into formats used by other systems.
In general, an output filter uses the contents of your *BBDB* buffer as input. Note that output filters do not use BBDB files (typically ` /.bbdb') directly.
An output filter is invoked by executing its associated lisp function. The name of the function is conventionally named bbdb-output-<system> (e.g., M-x bbdb-output-hp200lx).
The result of running an output filter is to create a new buffer that contains the *BBDB* information appropriately transformed into a format suitable for use by the target system. The new buffer is given a file name that you specify.
This output filter package has only been tested with the Microsoft Schedule+ version 7.0a software and Windows CE Version 1.0. The software is in file bbdb-schdplus.el.
If the menu item is grayed out you should use bring up the Tools->Synchronization Manager... dialog and check the box for ``Enable Appointment, Contact and Task Synchronization''. Leave unchecked the box for ``Automatically synchronize upon connecting''.
This output filter package has been tested with Microsoft Schedule+ version 7.0a (this program is part of Microsoft Outlook) and Windows CE version 2.0. The software is in file bbdb-schdplus.el. Here are the steps to import the bbdb list into the Windows CE device:
This output filter package has only been tested with the Netscape Communicator 4.72 and Windows NT OS. The software is in file bbdb-nsmail.el.
~/.netscape/address-book.bbdb.html. To
accept the default, just press enter.
This output filter package has only been tested with the Netscape Communicator 6 and Windows NT OS. The software is in file bbdb-netscape6.el.
~/bbdb-netscape6.csv. To accept the
default, just press enter. This name will be the name of your
Netscape 6 Address Book.
The software is in file bbdb-palmpilot.el. Here are the steps to import the bbdb list into the Windows CE device:
BBDB information can be exported to PC Eudora in two formats-as a nickname database file and as a recipients database file.
The PC Eudora output filter is in file bbdb-eudora.el.
The Lotus cc:Mail output filter is in file bbdb-ccmail.el.
The PH output filter is in file bbdb-ph.el.
The Emacs Lisp Export output filter is in file bbdb-export.el.
This output filter uses the current contents of your *BBDB* buffer to generate a new buffer (*BBDB* Export) that contains a single lisp (progn ...) expression. For example, a *BBDB* buffer containing two records would result in the following *BBDB* Export buffer:
;;; ======= Start of Exported BBDB Records =======
(progn
(require 'bbdb-com)
(defun bbdb-maybe-create (name company net &optional addrs phones notes)
"Try to add a record to BBDB if it does not already exist."
(condition-case err
(progn
(bbdb-create-internal name company net addrs phones notes)
(message "%s %s added." name (if net (concat "<" net ">") ""))
(sleep-for 1))
(error (ding)
(message "%s %s skipped. (%s)"
name
(if net (concat "<" net ">") "")
(car (cdr err)))
(sleep-for 1))))
(bbdb-maybe-create "Jill Doe--IMPORTED"
"CBS Corporation"
'("jilld@cbs.com")
'(
["Home"
"368 222ND PL"
""
""
"Springfield"
"MA" 2117]
)
'(
["Office" 617 555 9983 0]
) '"Movie Mogul")
(bbdb-maybe-create "John Doe--IMPORTED"
"ABC Incorporated"
'("jdoe@abc.com")
'(
["Office"
"123 Any Street"
""
""
"Any Town"
"WA" (98027 7758)]
)
'(
["Office" 206 555 1234 0]
) '"TV Producer")
)
;;; ======= End of Exported BBDB Records =======
This lisp expression can then be sent via email or some other text-based messaging facility to another user who can then evaluate the expression which will add the BBDB records to the recipient's BBDB database.
Only new records are added. A record with the same name or net address as one already existing in the BBDB is skipped entirely.
In the sample contents of a *BBDB* Export buffer presented, two records are being exported-one for ``John Doe'' and the other for ``Jill Doe''. Notice that their names have been appended with -IMPORTED. This string can be used to quick locate each record that is added to the database using this mechanism.
The following steps are for exporting BBDB records into Emacs Lisp:
The following steps are for a user wishing to import the contents of a *BBDB* Export buffer's expression into his or her own database:
This package has only been tested on HP 200LX palmtop systems. It also requires the ``HP 200LX Connectivity Pack'' for converting comma-delimited ASCII files into binary .PDB files which are read by the HP 200LX Phone Book application. Version 1.00 of the ``HP 200LX Connectivty Pack'' was used for testing.
The HP 200LX output filter is in file bbdb-hp200lx.el.