perusing my .bbdb file, I see there are a number of entries where the
phone fields are a list, and some where the phone records are
single strings

["home" 712 384 4819 0]     ;list entry
["office" 337 702 5857 0] 
["fax" "(337) 702-4066"]    ;string entry
["cell" "(712) 898-3131"])

I am working on a CSV converter based on one Robert Fenk posted
earlier to this list
http://www.mail-archive.com/[email protected]/msg02820.html
with code like:

       phones      (mapcar (lambda (p) (list (aref p 0) p))
                           (bbdb-record-phones rec))
       telpriv     (and phones (assoc "home" phones)
                        (aref (cadr (assoc "home" phones)) 1))
       teljob      (and phones (assoc "work" phones)
                        (aref (cadr (assoc "work" phones)) 1))
                        (aref (cadr (assoc "pager" phones)) 1))

The non-string phone records are not coming out right because just the
first entry in the array is grabbed by the code (aref array 1) above.
Can someone advise how I should be processing (assoc "work" phones) to
get the entire phone number?

Thanks,
John Hunter

BBDB version 2.2 ($Date: 2000/10/15 17:07:03 $)

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to