BBDB is a rolodex-like database program for GNU Emacs.
BBDB stands for Insidious Big Brother Database. BBDB is written by:
Jamie Zawinski <[EMAIL PROTECTED]>. My current veriosn is 1.50.
We have prepared a family of filters for BBDB. Currently the output
filters include:
- bbdb --> HP100/200 LX Phone Book
- bbdb --> PC Eudora Nic Names
- bbdb --> CC Mail Nic Names
- bbdb --> PH/QI
We hope that over time a variety of other input and output filters
will be added to this collection.
This is a preliminary release. This stuff has not been tested much
outside of our office. We do use most of these filters on an going basis
and they work fine for us.
To install, just edit the makefile and run "make install".
To run them, read the comments on top of each filter file.
There is very skimpy documentation in latexinfo format. It is just
meant to be a starting point.
In addition to the attached shar file,
you can also ftp this package from:
[EMAIL PROTECTED]:/pub/eoe/bbdbPlus/bbdb-filters-0.1.tar
Many of the filters require bbdb-tex-print package by:
Boris Goldowsky <[EMAIL PROTECTED]>.
The one that we use can be found in:
[EMAIL PROTECTED]:/pub/eoe/bbdbPlus/bbdb-tex-3.0.tar
Send bug-reports, comments and suggestions to:
Mohsen Banan-neda <[EMAIL PROTECTED]>
Hope you find this helpful.
...Mohsen.
-----
#! /bin/sh
# This is a shell archive. Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file". To overwrite existing
# files, type "sh file -c". You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g.. If this archive is complete, you
# will see the following message at the end:
# "End of shell archive."
# Contents: bbdb-ccmail.el bbdb-eudora.el bbdb-hp200lx.el bbdb-ph.el
# makefile COPYING.LIB doc doc/main.texinfo doc/makefile
# doc/bbdb-filters.info doc/main.tex
# Wrapped by mohsen@arash on Sat Apr 8 23:05:07 1995
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'bbdb-ccmail.el' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'bbdb-ccmail.el'\"
else
echo shar: Extracting \"'bbdb-ccmail.el'\" \(4153 characters\)
sed "s/^X//" >'bbdb-ccmail.el' <<'END_OF_FILE'
X;;; This file is part of the BBDB Filters Package. BBDB Filters Package is a
X;;; collection of input and output filters for BBDB.
X;;;
X;;; Copyright (C) 1995 Neda Communications, Inc.
X;;; Prepared by Mohsen Banan ([EMAIL PROTECTED])
X;;;
X;;; This library is free software; you can redistribute it and/or modify
X;;; it under the terms of the GNU Library General Public License as
X;;; published by the Free Software Foundation; either version 2 of the
X;;; License, or (at your option) any later version. This library is
X;;; distributed in the hope that it will be useful, but WITHOUT ANY
X;;; WARRANTY; without even the implied warranty of MERCHANTABILITY or
X;;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
X;;; License for more details. You should have received a copy of the GNU
X;;; Library General Public License along with this library; if not, write
X;;; to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139,
X;;; USA.
X;;;
X;;; This is bbdb-eudora.el
X;;;
X;;;
X;;; RCS: $Id: bbdb-ccmail.el,v 1.1 1995/04/09 04:17:21 mohsen Exp $
X;;;
X;;; a copy-and-edit job on bbdb-print.el
X
X;;; To use this, add the following to your .emacs
X;;; and strip ";;;XXX"
X;;;
X
X;;;XXX;; BBDB Filters
X;;;XXX(load "bbdb-ccmail")
X
X;;;XXX(setq bbdb-ccmail-filename "~/privdir.ini")
X;;;XXX;;; And then
X;;;XXX;;; (bbdb-ccmail-output)
X
X;;; TODO
X;;; Make the postoffice name optional as an argument
X;;;
X
X(require 'bbdb-print)
X
X(defvar bbdb-ccmail-filename "~/privdir.ini"
X "*Default file name for bbdb-output-ccmail printouts of BBDB database.")
X
X(defun bbdb-ccmail-output (to-file)
X "Print the selected BBDB entries"
X (interactive (list (read-file-name "Print To File: " bbdb-ccmail-filename)))
X (setq bbdb-ccmail-filename (expand-file-name to-file))
X (let ((current-letter t)
X (records (progn (set-buffer bbdb-buffer-name)
X bbdb-records)))
X (find-file bbdb-ccmail-filename)
X (delete-region (point-min) (point-max))
X (let* ((ccmail-count 0))
X (while records
X (setq current-letter
X (boe-ccmail-format-record (car (car records))
X current-letter))
X (setq records (cdr records)))
X (goto-char (point-min))
X (insert (format "[smtpgate]
\nEntryCount=%d
\n" ccmail-count))
X (goto-char (point-min)))))
X
X(defun boe-ccmail-output-this-record-p (name net)
X "Examine NAME COMP NET PHONES ADDRS NOTES and return t if
Xthe current record is to be output by bbdb-output-ccmail."
X ;; if name is non-nil, output it
X (cond ((and name net) t)
X (t nil))
X )
X
X
X(defun boe-ccmail-format-record (record &optional current-letter brief)
X "Insert the bbdb RECORD in Ccmail format.
XOptional CURRENT-LETTER is the section we're in -- if this is non-nil and
Xthe first letter of the sortkey of the record differs from it, a new section
Xheading will be output \(an arg of t will always produce a heading).
XThe new current-letter is the return value of this function.
XSomeday, optional third arg BRIEF will produce one-line format."
X (bbdb-debug (if (bbdb-record-deleted-p record)
X (error "plus ungood: tex formatting deleted record")))
X
X (let* ((bbdb-elided-display bbdb-print-elide)
X (first-letter
X (substring (concat (bbdb-record-sortkey record) "?") 0 1))
X (name (and (bbdb-field-shown-p 'name)
X (or (bbdb-record-getprop record 'tex-name)
X (bbdb-print-tex-quote
X (bbdb-record-name record)))))
X (net (and (bbdb-field-shown-p 'net)
X (bbdb-record-net record)))
X (begin (point))
X )
X
X (if (and current-letter
X (not (string-equal first-letter current-letter)))
X (message "Now processing \"%s\" entries..." (upcase first-letter)))
X
X (if (boe-ccmail-output-this-record-p name net)
X (progn
X
X ;; Email address -- just use their first address.
X ;; Make all dots legal line-breaks.
X ;;
X ;; output in the following format: "<Pretty Name>" <email address>
X (if net
X (let ((net-addr (car net))
X (start 0))
X (setq ccmail-count (+ ccmail-count 1))
X (insert (format "Entry%d=" ccmail-count))
X (insert (format "\"%s\" <%s>
\n" name net-addr))))
X (setq current-letter first-letter))
X )
X
X ;; return current letter
X current-letter))
X
END_OF_FILE
if test 4153 -ne `wc -c <'bbdb-ccmail.el'`; then
echo shar: \"'bbdb-ccmail.el'\" unpacked with wrong size!
fi
# end of 'bbdb-ccmail.el'
fi
if test -f 'bbdb-eudora.el' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'bbdb-eudora.el'\"
else
echo shar: Extracting \"'bbdb-eudora.el'\" \(9919 characters\)
sed "s/^X//" >'bbdb-eudora.el' <<'END_OF_FILE'
X;;; This file is part of the BBDB Filters Package. BBDB Filters Package is a
X;;; collection of input and output filters for BBDB.
X;;;
X;;; Copyright (C) 1995 Neda Communications, Inc.
X;;; Prepared by Mohsen Banan ([EMAIL PROTECTED])
X;;;
X;;; This library is free software; you can redistribute it and/or modify
X;;; it under the terms of the GNU Library General Public License as
X;;; published by the Free Software Foundation; either version 2 of the
X;;; License, or (at your option) any later version. This library is
X;;; distributed in the hope that it will be useful, but WITHOUT ANY
X;;; WARRANTY; without even the implied warranty of MERCHANTABILITY or
X;;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
X;;; License for more details. You should have received a copy of the GNU
X;;; Library General Public License along with this library; if not, write
X;;; to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139,
X;;; USA.
X;;;
X;;; This is bbdb-eudora.el
X;;;
X;;;
X;;; RCS: $Id: bbdb-eudora.el,v 1.1 1995/04/09 04:17:45 mohsen Exp $
X;;;
X;;; a copy-and-edit job on bbdb-print.el
X
X;;; To use this, add the following to your .emacs
X;;; and strip ";;;XXX"
X;;;
X
X;;;XXX;; BBDB Filters
X;;;XXX(load "bbdb-eudora")
X
X;;;XXX(setq bbdb-eudora-nndbase-filename
X;;;XXX (concat "/dos/m/eudora.mai/" (user-login-name) "/nndbase.txt"))
X;;;XXX;;; And then
X;;;XXX;; (bbdb-eudora-nndbase-output)
X
X;;;XXX(setq bbdb-eudora-rcpdbase-filename
X;;;XXX (concat "/dos/m/eudora.mai/" (user-login-name) "/rcpdbase.txt"))
X;;;XXX;;; And then
X;;;XXX;; (bbdb-eudora-rcpdbase-output)
X
X(require 'bbdb-print)
X(require 'basic-ext)
X
X(defvar bbdb-eudora-nndbase-filename "~/nndbase.txt"
X "*Default file name for bbdb-output-eudora printouts of BBDB database.")
X
X(defun bbdb-eudora-nndbase-output (to-file)
X "Print the selected BBDB entries"
X (interactive (list (read-file-name "Print To File: " bbdb-eudora-nndbase-filename)))
X (setq bbdb-eudora-nndbase-filename (expand-file-name to-file))
X (let ((current-letter t)
X (records (progn (set-buffer bbdb-buffer-name)
X bbdb-records)))
X (find-file bbdb-eudora-nndbase-filename)
X (delete-region (point-min) (point-max))
X (while records
X (setq current-letter
X (boe-format-record (car (car records)) current-letter))
X (setq records (cdr records)))
X (goto-char (point-min))
X (message "Eudora nickname file %s generated." bbdb-eudora-nndbase-filename)))
X
X(defsubst boe-print-if-not-blank (string prepend-string &rest more)
X "If STRING is not null, then return it with PREPEND-STRING in front and concatenated
Xwith rest of arguments. If it is null, then all arguments are
Xignored and the null string is returned."
X (if (or (null string) (equal "" string))
X ""
X (apply 'concat prepend-string string more)))
X
X(defun boe-output-this-record-p (name comp net phones addrs notes)
X "Examine NAME COMP NET PHONES ADDRS NOTES and return t if
Xthe current record is to be output by bbdb-output-eudora."
X ;; if name is non-nil, output it
X (cond ((and name net) t)
X (t nil))
X )
X
X
X(defun boe-format-record (record &optional current-letter brief)
X "Insert the bbdb RECORD in Eudora format.
XOptional CURRENT-LETTER is the section we're in -- if this is non-nil and
Xthe first letter of the sortkey of the record differs from it, a new section
Xheading will be output \(an arg of t will always produce a heading).
XThe new current-letter is the return value of this function.
XSomeday, optional third arg BRIEF will produce one-line format."
X (bbdb-debug (if (bbdb-record-deleted-p record)
X (error "plus ungood: formatting deleted record")))
X
X (let* ((bbdb-elided-display bbdb-print-elide)
X (first-letter
X (substring (concat (bbdb-record-sortkey record) "?") 0 1))
X (name (and (bbdb-field-shown-p 'name)
X (or (bbdb-record-getprop record 'tex-name)
X (bbdb-record-name record))))
X (comp (and (bbdb-field-shown-p 'company)
X (bbdb-record-company record)))
X (net (and (bbdb-field-shown-p 'net)
X (bbdb-record-net record)))
X (phones (and (bbdb-field-shown-p 'phone)
X (bbdb-record-phones record)))
X (addrs (and (bbdb-field-shown-p 'address)
X (bbdb-record-addresses record)))
X (notes (bbdb-record-raw-notes record))
X (begin (point))
X (bare t))
X
X ;; Section header, if neccessary.
X
X (if (and current-letter (not (string-equal first-letter current-letter)))
X (message "Now processing \"%s\" entries..." (upcase first-letter)))
X
X (if (boe-output-this-record-p name comp net phones addrs notes)
X (progn
X
X ;; Eudora nickname in canonical form (e.g., mohsen.banan)
X ;;
X (if name
X (insert (format "<%s>
\n" name)))
X
X ;; Email address -- just use their first address.
X ;; Make all dots legal line-breaks.
X ;;
X ;; output in the following format: "<Pretty Name>" <email address>
X (if net
X (let ((net-addr (car net))
X (start 0))
X (insert (format ">\"%s\" <%s>
\n" name net-addr))))
X
X ;; start a Eudora nndbase.txt notes section for this nickname
X ;; by inserting the nickname again
X
X (if name
X (insert (format "<%s>
\n" name)))
X
X ;; Company
X ;;
X (if comp
X (insert (format "> Company: %s
\n"
X (boe-mangle-if-multi-line comp))))
X
X ;; Phone numbers
X ;;
X (while phones
X (let ((place (aref (car phones) 0))
X (number (bbdb-phone-string (car phones))))
X (setq bare nil)
X (insert (format "> Telephone: %s%s
\n"
X (boe-print-if-not-blank place "" ": ")
X number))
X (setq phones (cdr phones))))
X
X ;; Addresses
X ;;
X (while addrs
X (let ((addr (car addrs)))
X (setq bare nil)
X (insert
X (format
X "> Address:
\n%s"
X (concat
X (boe-print-if-not-blank (bbdb-address-street1 addr) "> " "
\n")
X (boe-print-if-not-blank (bbdb-address-street2 addr) "> " "
\n")
X (boe-print-if-not-blank (bbdb-address-street3 addr) "> ")
X (boe-print-if-not-blank (bbdb-address-city addr) "> ")
X (if (and (not (equal "" (bbdb-address-city addr)))
X (not (equal "" (bbdb-address-state addr))))
X ", ")
X (boe-print-if-not-blank (bbdb-address-state addr) "" " ")
X
!
!
!
!
!
!
!
!
of this function.
XSomeday, optional third arg BRIEF will produce one-line format."
X (bbdb-debug (if (bbdb-record-deleted-p record)
X (error "plus ungood: formatting deleted record")))
X
X
X (let* ((bbdb-elided-display bbdb-hp200lx-output-elide)
X (first-letter
X (substring (concat (bbdb-record-sortkey record) "?") 0 1))
X (name (and (bbdb-field-shown-p 'name)
X (or (bbdb-record-getprop record 'tex-name)
X (bbdb-record-name record))))
X (comp (and (bbdb-field-shown-p 'company)
X (bbdb-record-company record)))
X (net (and (bbdb-field-shown-p 'net)
X (bbdb-record-net record)))
X (phones (and (bbdb-field-shown-p 'phone)
X (bbdb-record-phones record)))
X (addrs (and (bbdb-field-shown-p 'address)
X (bbdb-record-addresses record)))
X (notes (bbdb-record-raw-notes record))
X (begin (point))
X (bare t))
X
X
X ;; Section header, if neccessary.
X
X
X (if (and current-letter (not (string-equal first-letter current-letter)))
X (message "Now processing \"%s\" entries..." (upcase first-letter)))
X
X
X (if (eval bbdb-hp200lx-output-requires)
X (let (more-phones)
X
X
X ;; HP 200LX last name field (maxlen 86 ??) -- used for BBDB name
X ;;
X (insert (format "\"%s\"," (boh-maybe-truncate name 86)))
X
X
X ;; HP 200LX first name field (maxlen ??) -- unused
X (insert ",")
X
X
X ;; HP 200LX middle name field (maxlen ??) -- unused
X ;;
X (insert ",")
X
X
X ;; Phone numbers
X ;;
X (let (business-phone home-phone fax-phone saved-case-fold)
X (setq saved-case-fold case-fold-search
X case-fold-search t)
X (while phones
X (let ((place (aref (car phones) 0))
X (number (bbdb-phone-string (car phones))))
X (cond ((or (string-match place "office")
X (string-match place "work"))
X (if (null business-phone)
X (setq business-phone (list place number))
X (setq more-phones (cons (list place number) more-phones))))
X ((string-match place "home")
X (if (null home-phone)
X (setq home-phone (list place number))
X (setq more-phones (cons (list place number) more-phones))))
X ((or (string-match place "fax")
X (string-match place "facsimile"))
X (if (null fax-phone)
X (setq fax-phone (list place number))
X (setq more-phones (cons (list place number) more-phones))))
X (t
X (setq more-phones (cons (list place number) more-phones)))))
X (setq phones (cdr phones)))
X
X
X (setq case-fold-search saved-case-fold)
X
X
X ;; HP 200LX business phone field (maxlen 29)
X (if business-phone
X (progn
X (insert (format "\"%s\"," (boh-maybe-truncate
X (format "%s" (car (cdr business-phone)))
X 29)))
X (setq bare nil))
X (insert ","))
X
X
X ;; HP 200LX home phone field (maxlen 29)
X (if home-phone
X (progn
X (insert (format "\"%s\"," (boh-maybe-truncate
X (format "%s" (car (cdr home-phone)))
X 29)))
X (setq bare nil))
X (insert ","))
X
X
X ;; HP 200LX alternate phone field (maxlen 29) -- unused
X (insert ",")
X
X
X ;; HP 200LX fax phone field (maxlen 29)
X (if fax-phone
X (progn
X (insert (format "\"%s\"," (boh-maybe-truncate
X (format "%s" (car (cdr fax-phone))) ; the
description
X 29)))
X (setq bare nil))
X (insert ","))
X )
X
X
X ;; HP 200LX title field (maxlen 38) -- unused
X (insert ",")
X
X
X ;; HP 200LX category field (maxlen 127) -- unused
X (insert ",")
X
X
X ;; HP 200LX company field (maxlen 82) -- used for BBDB company
X (if comp
X (insert (format "\"%s\"," (boh-maybe-truncate comp 82)))
X (insert ","))
X
X
X ;; Addresses
X ;;
X (let ((addr (car addrs)) ;just take the first bbdb address
X hp-addr1 hp-addr2 hp-city hp-state hp-zip)
X
X (if addr
X (progn
X (setq hp-addr1 (bbdb-address-street1 addr))
X (setq hp-addr2 (concat (bbdb-address-street2 addr)
X (bbdb-address-street3 addr)))
X (setq hp-city (bbdb-address-city addr))
X (setq hp-state (bbdb-address-state addr))
X (setq hp-zip (bbdb-address-zip-string addr))))
X
X ;; HP 200LX address 1 field (maxlen 82)
X (if hp-addr1
X (progn
X (insert (format "\"%s\"," (boh-maybe-truncate hp-addr1 82)))
X (setq bare nil))
X (insert ","))
X
X ;; HP 200LX address 2 field (maxlen 82)
X (if hp-addr2
X (progn
X (insert (format "\"%s\"," (boh-maybe-truncate hp-addr2 82)))
X (setq bare nil))
X (insert ","))
X
X ;; HP 200LX city field (maxlen 34)
X (if hp-city
X (progn
X (insert (format "\"%s\"," (boh-maybe-truncate hp-city 34)))
X (setq bare nil))
X (insert ","))
X
X ;; HP 200LX state field (maxlen 39)
X (if hp-state
X (progn
X (insert (format "\"%s\"," (boh-maybe-truncate hp-state 39)))
X (setq bare nil))
X (insert ","))
X
X ;; HP 200LX zip field (maxlen 16)
X (if hp-zip
X (progn
X (insert (format "\"%s\"," (boh-maybe-truncate hp-zip 16)))
X (setq bare nil))
X (insert ","))
X )
X
X ;; BBDB Notes
X
X (let (hp-note)
X (save-excursion
X (set-buffer (get-buffer-create " *boh-scratch*"))
X (kill-region (point-min) (point-max))
X
X (while more-phones
X (insert (format "%s: %s\t"
X (car (car more-phones)) ; the tag
X (car (cdr (car more-phones)))) ; the number
X )
X (setq bare nil)
X (setq more-phones (cdr more-phones)))
X
X ;; output BBDB email-addresses
X (while net
X (insert (format "%s\t" (car net)))
X (setq bare nil)
X (setq net (cdr net)))
X
X (if (stringp notes)
X (setq notes (list (cons 'notes notes))))
X
X (while notes
X (let ((thisnote (car notes)))
X (if (bbdb-field-shown-p (car thisnote))
X (progn
X (setq bare nil)
X (if (eq 'notes (car thisnote))
X (insert (format "Notes: %s\t" (boh-mangle-if-multi-line
(cdr thisnote))))
X (insert (format "Note [%s]: %s\t"
X (symbol-name (car thisnote))
X (boh-mangle-if-multi-line (cdr
thisnote))))))))
X (setq notes (cdr notes)))
X
X (setq hp-note (buffer-string)))
X
X ;; HP 200LX notes field (32K for the entire record)
X (if (> (length hp-note) 0)
X (progn
X (insert (format "\"%s\"" hp-note))
X (setq bare nil)))
X )
X
X ;; If record is bare, delete anything we may have inserted.
X ;; otherwise, mark the end of this record.
X (if (and bare bbdb-hp200lx-output-no-bare-names)
X (delete-region begin (point))
X (insert "
\n")) ; HP 200LX end of record
X ))
X
X ;; return current letter
X current-letter))
X
X
X(defun boh-maybe-truncate (string maxlen)
X "If STRING is longer than MAXLEN, returns a truncated version."
X (if (> (length string) maxlen)
X (substring string 0 maxlen)
X string))
X
X
X(defun boh-mangle-if-multi-line (string)
X "If STRING is has multiple lines, mangle it for output to HP200LX"
X (if (string-match "\n" string)
X (string-replace-regexp string "\n" "\t") ; tabs are used to denote new lines in
the .cdf file
X string))
END_OF_FILE
if test 10628 -ne `wc -c <'bbdb-hp200lx.el'`; then
echo shar: \"'bbdb-hp200lx.el'\" unpacked with wrong size!
fi
# end of 'bbdb-hp200lx.el'
fi
if test -f 'bbdb-ph.el' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'bbdb-ph.el'\"
else
echo shar: Extracting \"'bbdb-ph.el'\" \(8470 characters\)
sed "s/^X//" >'bbdb-ph.el' <<'END_OF_FILE'
X;;; This file is part of the BBDB Filters Package. BBDB Filters Package is a
X;;; collection of input and output filters for BBDB.
X;;;
X;;; Copyright (C) 1995 Neda Communications, Inc.
X;;; Prepared by Mohsen Banan ([EMAIL PROTECTED])
X;;;
X;;; This library is free software; you can redistribute it and/or modify
X;;; it under the terms of the GNU Library General Public License as
X;;; published by the Free Software Foundation; either version 2 of the
X;;; License, or (at your option) any later version. This library is
X;;; distributed in the hope that it will be useful, but WITHOUT ANY
X;;; WARRANTY; without even the implied warranty of MERCHANTABILITY or
X;;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
X;;; License for more details. You should have received a copy of the GNU
X;;; Library General Public License along with this library; if not, write
X;;; to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139,
X;;; USA.
X;;;
X;;; This is bbdb-ph.el
X;;;
X;;;
X;;; RCS: $Id: bbdb-ph.el,v 1.1 1995/04/09 04:18:34 mohsen Exp $
X;;;
X;;; a copy-and-edit job on bbdb-print.el
X
X
X;;; To use this, add the following to your .emacs
X;;; and strip ";;;XXX"
X;;;
X
X;;;XXX;; BBDB PH Filter
X;;;XXX(load "bbdb-ph")
X
X;;;XXX(setq bbdb-ph-filename
X;;;XXX (concat "/dos/u/" (user-login-name) "/bb-phone.cdf"))
X;;;XXX;;; - to output the *BBDB* buffer in PH tab-delimited-file (.CDF)
X;;;XXX;;; format, invoke M-x bbdb-ph-output
X;;;XXX;;;
X;;;XXX;;; - you may also want to modify default values of the following (use
X;;;XXX;;; M-x describe-variable for details):
X;;;XXX;;; bbdb-ph-output-elide
X;;;XXX;;; bbdb-ph-output-requires
X;;;XXX;;; bbdb-ph-output-no-bare-names
X
X
X(require 'bbdb-print)
X(require 'basic-ext)
X
X
X(defvar bbdb-ph-filename "~/data.out"
X "*Default file name for bbdb-output-ph printouts of BBDB database.")
X
X
X(defvar bbdb-ph-output-elide '(creation-date timestamp mail-alias)
X "*List of symbols denoting BBDB fields NOT to be output.
XValid symbols are: name comp net phones addrs. You can also use the
Xtags for notes (e.g., creation-date).
X e.g.: '(net creation-date)
XSee also variable bbdb-ph-output-requires.")
X
X
X(defvar bbdb-ph-output-requires '(and name net)
X "*A boolean expression of 'and' and 'or' to be evaluated to determine if
Xthe current record should be output. Valid symbols for use
Xin the boolean expression are: name comp net phones addrs notes.
X e.g.: (and name (or comp addrs))
XSee also variable bbdb-ph-output-elide.
X")
X
X
X(defvar bbdb-ph-output-no-bare-names t
X "*A bare name is one with no information other than
Xthat in bbdb-ph-output-requires. To avoid printing
Xthese set this variable to t")
X
X
X(defun bbdb-ph-output (to-file)
X "Print the selected BBDB entries"
X (interactive (list (read-file-name "Print To File: " bbdb-ph-filename)))
X (setq bbdb-ph-filename (expand-file-name to-file))
X (let ((current-letter t)
X (records (progn (set-buffer bbdb-buffer-name)
X bbdb-records)))
X (find-file bbdb-ph-filename)
X (delete-region (point-min) (point-max))
X (while records
X (setq current-letter
X (boph-maybe-format-record (car (car records)) current-letter))
X (setq records (cdr records)))
X (goto-char (point-min))
X (message "PH tag and tab-delimited file %s generated." bbdb-ph-filename)))
X
X
X(defun boph-maybe-format-record (record &optional current-letter brief)
X "Insert the bbdb RECORD in Ph format.
XOptional CURRENT-LETTER is the section we're in -- if this is non-nil and
Xthe first letter of the sortkey of the record differs from it, a new section
Xheading will be output \(an arg of t will always produce a heading).
XThe new current-letter is the return value of this function.
XSomeday, optional third arg BRIEF will produce one-line format."
X (bbdb-debug (if (bbdb-record-deleted-p record)
X (error "plus ungood: formatting deleted record")))
X
X (let* ((bbdb-elided-display bbdb-ph-output-elide)
X (first-letter
X (substring (concat (bbdb-record-sortkey record) "?") 0 1))
X (name (and (bbdb-field-shown-p 'name)
X (or (bbdb-record-getprop record 'tex-name)
X (bbdb-record-name record))))
X (comp (and (bbdb-field-shown-p 'company)
X (bbdb-record-company record)))
X (net (and (bbdb-field-shown-p 'net)
X (bbdb-record-net record)))
X (phones (and (bbdb-field-shown-p 'phone)
X (bbdb-record-phones record)))
X (addrs (and (bbdb-field-shown-p 'address)
X (bbdb-record-addresses record)))
X (notes (bbdb-record-raw-notes record))
X (begin (point))
X (bare t)
X ph-name ph-email ph-office-phone ph-skypager ph-portable
X ph-title-notes-part
X saved-case-fold)
X
X
X ;; Section header, if neccessary.
X
X (if (and current-letter (not (string-equal first-letter current-letter)))
X (message "Now processing \"%s\" entries..." (upcase first-letter)))
X
X
X (if (eval bbdb-ph-output-requires)
X (progn
X
X ;; =============================================================
X ;; grovel through BBDB record collecting ph-relevant information
X ;; =============================================================
X
X ;; grovel through name
X ;;
X (setq ph-name name)
X
X ;; grovel through phone numbers
X ;;
X (progn
X (setq saved-case-fold case-fold-search
X case-fold-search t)
X (while phones
X (let ((place (aref (car phones) 0))
X (number (bbdb-phone-string (car phones))))
X (cond ((or (string-match place "office")
X (string-match place "work"))
X (if (null ph-office-phone)
X (setq ph-office-phone number)))
X ((or (string-match place "mobile")
X (string-match place "cellular"))
X (if (null ph-portable)
X (setq ph-portable number)))
X (t nil)))
X (setq phones (cdr phones)))
X
X
X (setq case-fold-search saved-case-fold)
X )
X
X ;; grovel through BBDB email-addresses
X ;;
X (if net
X (setq ph-email (car net)))
X
X ;; grovel through BBDB Notes
X ;;
X (progn
X
X (if (stringp notes)
X (setq notes (list (cons 'notes notes))))
X
X (while notes
X (let ((curr-note (car notes)))
X (if (bbdb-field-shown-p (car curr-note))
X (cond ((member (car curr-note) '(skypage pager))
X (setq ph-skypager (boph-mangle-if-multi-line (cdr
curr-note))))
X ((equal (car curr-note) 'mobile)
X (setq ph-portable (boph-mangle-if-multi-line (cdr
curr-note))))
X ((equal (car curr-note) 'notes)
X (setq ph-title-notes-part (boph-mangle-if-multi-line (cdr
curr-note))))
X (t nil))
X ))
X (setq notes (cdr notes)))
X )
X
X ;; grovel through comp
X ;;
X (setq ph-title-coname-part comp)
X (setq ph-title (concat (or ph-title-coname-part "")
X (if (and ph-title-coname-part ph-title-notes-part) "
" "")
X (if ph-title-notes-part (concat "["
ph-title-notes-part "]") "")))
X
X ;; ====================
X ;; now output PH record
X ;; ====================
X
X ;; PH 'name' field (maxlen 256)
X ;;
X (insert (format "3:%s\t" (boph-maybe-truncate (or name "") 256)))
X
X ;; PH 'email' field (maxlen 25) (should be 128?) ** NOT YET **
X (if ph-email (setq bare nil))
X (insert (format "2:%s\t" (boph-maybe-truncate (or ph-email "") 25)))
X
X ;; PH 'office_phone' field (max len 60)
X ;;
X (if ph-office-phone (setq bare nil))
X (insert (format "32:%s\t" (boph-maybe-truncate (or ph-office-phone "") 60)))
X
X ;; PH 'title' field (maxlen 120)
X (insert (format "98:%s\t" (boph-maybe-truncate ph-title 120)))
X
X ;; PH 'portable' field (maxlen 60)
X (if ph-portable (setq bare nil))
X (insert (format "97:%s\t" (boph-maybe-truncate (or ph-portable "") 60)))
X
X ;; PH 'skypager' field (maxlen 64)
X (if ph-skypager (setq bare nil))
X (insert (format "27:%s\t" (boph-maybe-truncate (or ph-skypager "") 64)))
X
X ;; ==========
X ;; bare check
X ;; ==========
X
X ;; If record is bare, delete anything we may have inserted.
X ;; otherwise, mark the end of this record.
X (if (and bare bbdb-ph-output-no-bare-names)
X (delete-region begin (point))
X (insert "\n")) ; PH end of record
X ))
X
X ;; return current letter
X current-letter))
X
X
X(defun boph-maybe-truncate (string maxlen)
X "If STRING is longer than MAXLEN, returns a truncated version."
X (if (> (length string) maxlen)
X (substring string 0 maxlen)
X string))
X
X
X(defun boph-mangle-if-multi-line (string)
X "If STRING is has multiple lines, mangle it for output to PH"
X (if (string-match "\n" string)
X (string-replace-regexp string "\n" "\t") ; tabs are used to denote new lines in
the .cdf file
X string))
END_OF_FILE
if test 8470 -ne `wc -c <'bbdb-ph.el'`; then
echo shar: \"'bbdb-ph.el'\" unpacked with wrong size!
fi
# end of 'bbdb-ph.el'
fi
if test -f 'makefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'makefile'\"
else
echo shar: Extracting \"'makefile'\" \(2009 characters\)
sed "s/^X//" >'makefile' <<'END_OF_FILE'
X# This file is part of the BBDB Filters Package. BBDB Filters Package is a
X# collection of input and output filters for BBDB.
X#
X# Copyright (C) 1995 Neda Communications, Inc.
X# Prepared by Mohsen Banan ([EMAIL PROTECTED])
X#
X# This library is free software; you can redistribute it and/or modify
X# it under the terms of the GNU Library General Public License as
X# published by the Free Software Foundation; either version 2 of the
X# License, or (at your option) any later version. This library is
X# distributed in the hope that it will be useful, but WITHOUT ANY
X# WARRANTY; without even the implied warranty of MERCHANTABILITY or
X# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
X# License for more details. You should have received a copy of the GNU
X# Library General Public License along with this library; if not, write
X# to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139,
X# USA.
X#
X#
X
X# Makefile for the Insidious Big Brother Database -- Input and Output Filters
X#
X# RCS $Id: makefile,v 1.2 1995/04/09 04:51:50 mohsen Exp $
X#
X
XEOEBASE = /usr/public/eoe/lisp/public/bbdbPlus
XEOEINFO = /usr/public/eoe/info
XEMACS= xemacs
X
X
X# You shouldn't need to change anything after this point.
X
XSRCS = bbdb-ccmail.el bbdb-eudora.el bbdb-hp200lx.el bbdb-ph.el
X
XSHELL=/bin/sh
X
X.SUFFIXES:
X.SUFFIXES: .elc .el
X
X.el.elc:
X $(EMACS) -batch -q -f batch-byte-compile $(@:.elc=.el)
X
Xdefault:
X @echo Targets: install clean shar
X
Xinstall:
X cp $(SRCS) $(EOEBASE)
X cd doc; make EOEBASE=$(EOEBASE) EOEINFO=$(EOEINFO) install
X
Xclean:
X -/bin/rm *.elc package.shar
X cd doc; make EOEBASE=$(EOEBASE) EOEINFO=$(EOEINFO) clean
X
X
Xshar: $(SRCS) makefile
X shar -o package.shar $(SRCS) makefile COPYING.LIB \
X doc doc/main.texinfo doc/makefile doc/bbdb-filters.info doc/main.tex
X
XFORFTPING = /h8/var/ftp/pub/eoe/bbdbPlus/bbdb-filters-0.1.tar
X
Xtar: $(SRCS) makefile
X tar cvf $(FORFTPING) $(SRCS) makefile COPYING.LIB doc/main.texinfo
doc/makefile doc/bbdb-filters.info doc/main.tex
X
X
X
END_OF_FILE
if test 2009 -ne `wc -c <'makefile'`; then
echo shar: \"'makefile'\" unpacked with wrong size!
fi
# end of 'makefile'
fi
if test -f 'COPYING.LIB' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'COPYING.LIB'\"
else
echo shar: Extracting \"'COPYING.LIB'\" \(25265 characters\)
sed "s/^X//" >'COPYING.LIB' <<'END_OF_FILE'
X GNU LIBRARY GENERAL PUBLIC LICENSE
X Version 2, June 1991
X
X Copyright (C) 1991 Free Software Foundation, Inc.
X 675 Mass Ave, Cambridge, MA 02139, USA
X Everyone is permitted to copy and distribute verbatim copies
X of this license document, but changing it is not allowed.
X
X[This is the first released version of the library GPL. It is
X numbered 2 because it goes with version 2 of the ordinary GPL.]
X
X Preamble
X
X The licenses for most software are designed to take away your
Xfreedom to share and change it. By contrast, the GNU General Public
XLicenses are intended to guarantee your freedom to share and change
Xfree software--to make sure the software is free for all its users.
X
X This license, the Library General Public License, applies to some
Xspecially designated Free Software Foundation software, and to any
Xother libraries whose authors decide to use it. You can use it for
Xyour libraries, too.
X
X When we speak of free software, we are referring to freedom, not
Xprice. Our General Public Licenses are designed to make sure that you
Xhave the freedom to distribute copies of free software (and charge for
Xthis service if you wish), that you receive source code or can get it
Xif you want it, that you can change the software or use pieces of it
Xin new free programs; and that you know you can do these things.
X
X To protect your rights, we need to make restrictions that forbid
Xanyone to deny you these rights or to ask you to surrender the rights.
XThese restrictions translate to certain responsibilities for you if
Xyou distribute copies of the library, or if you modify it.
X
X For example, if you distribute copies of the library, whether gratis
Xor for a fee, you must give the recipients all the rights that we gave
Xyou. You must make sure that they, too, receive or can get the source
Xcode. If you link a program with the library, you must provide
Xcomplete object files to the recipients so that they can relink them
Xwith the library, after making changes to the library and recompiling
Xit. And you must show them these terms so they know their rights.
X
X Our method of protecting your rights has two steps: (1) copyright
Xthe library, and (2) offer you this license which gives you legal
Xpermission to copy, distribute and/or modify the library.
X
X Also, for each distributor's protection, we want to make certain
Xthat everyone understands that there is no warranty for this free
Xlibrary. If the library is modified by someone else and passed on, we
Xwant its recipients to know that what they have is not the original
Xversion, so that any problems introduced by others will not reflect on
Xthe original authors' reputations.
X
X Finally, any free program is threatened constantly by software
Xpatents. We wish to avoid the danger that companies distributing free
Xsoftware will individually obtain patent licenses, thus in effect
Xtransforming the program into proprietary software. To prevent this,
Xwe have made it clear that any patent must be licensed for everyone's
Xfree use or not licensed at all.
X
X Most GNU software, including some libraries, is covered by the ordinary
XGNU General Public License, which was designed for utility programs. This
Xlicense, the GNU Library General Public License, applies to certain
Xdesignated libraries. This license is quite different from the ordinary
Xone; be sure to read it in full, and don't assume that anything in it is
Xthe same as in the ordinary license.
X
X The reason we have a separate public license for some libraries is that
Xthey blur the distinction we usually make between modifying or adding to a
Xprogram and simply using it. Linking a program with a library, without
Xchanging the library, is in some sense simply using the library, and is
Xanalogous to running a utility program or application program. However, in
Xa textual and legal sense, the linked executable is a combined work, a
Xderivative of the original library, and the ordinary General Public License
Xtreats it as such.
X
X Because of this blurred distinction, using the ordinary General
XPublic License for libraries did not effectively promote software
Xsharing, because most developers did not use the libraries. We
Xconcluded that weaker conditions might promote sharing better.
X
X However, unrestricted linking of non-free programs would deprive the
Xusers of those programs of all benefit from the free status of the
Xlibraries themselves. This Library General Public License is intended to
Xpermit developers of non-free programs to use free libraries, while
Xpreserving your freedom as a user of such programs to change the free
Xlibraries that are incorporated in them. (We have not seen how to achieve
Xthis as regards changes in header files, but we have achieved it as regards
Xchanges in the actual functions of the Library.) The hope is that this
Xwill lead to faster development of free libraries.
X
X The precise terms and conditions for copying, distribution and
Xmodification follow. Pay close attention to the difference between a
X"work based on the library" and a "work that uses the library". The
Xformer contains code derived from the library, while the latter only
Xworks together with the library.
X
X Note that it is possible for a library to be covered by the ordinary
XGeneral Public License rather than by this special one.
X
X GNU LIBRARY GENERAL PUBLIC LICENSE
X TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
X
X 0. This License Agreement applies to any software library which
Xcontains a notice placed by the copyright holder or other authorized
Xparty saying it may be distributed under the terms of this Library
XGeneral Public License (also called "this License"). Each licensee is
Xaddressed as "you".
X
X A "library" means a collection of software functions and/or data
Xprepared so as to be conveniently linked with application programs
X(which use some of those functions and data) to form executables.
X
X The "Library", below, refers to any such software library or work
Xwhich has been distributed under these terms. A "work based on the
XLibrary" means either the Library or any derivative work under
Xcopyright law: that is to say, a work containing the Library or a
Xportion of it, either verbatim or with modifications and/or translated
Xstraightforwardly into another language. (Hereinafter, translation is
Xincluded without limitation in the term "modification".)
X
X "Source code" for a work means the preferred form of the work for
Xmaking modifications to it. For a library, complete source code means
Xall the source code for all modules it contains, plus any associated
Xinterface definition files, plus the scripts used to control compilation
Xand installation of the library.
X
X Activities other than copying, distribution and modification are not
Xcovered by this License; they are outside its scope. The act of
Xrunning a program using the Library is not restricted, and output from
Xsuch a program is covered only if its contents constitute a work based
Xon the Library (independent of the use of the Library in a tool for
Xwriting it). Whether that is true depends on what the Library does
Xand what the program that uses the Library does.
X
X 1. You may copy and distribute verbatim copies of the Library's
Xcomplete source code as you receive it, in any medium, provided that
Xyou conspicuously and appropriately publish on each copy an
Xappropriate copyright notice and disclaimer of warranty; keep intact
Xall the notices that refer to this License and to the absence of any
Xwarranty; and distribute a copy of this License along with the
XLibrary.
X
X You may charge a fee for the physical act of transferring a copy,
Xand you may at your option offer warranty protection in exchange for a
Xfee.
X
X 2. You may modify your copy or copies of the Library or any portion
Xof it, thus forming a work based on the Library, and copy and
Xdistribute such modifications or work under the terms of Section 1
Xabove, provided that you also meet all of these conditions:
X
X a) The modified work must itself be a software library.
X
X b) You must cause the files modified to carry prominent notices
X stating that you changed the files and the date of any change.
X
X c) You must cause the whole of the work to be licensed at no
X charge to all third parties under the terms of this License.
X
X d) If a facility in the modified Library refers to a function or a
X table of data to be supplied by an application program that uses
X the facility, other than as an argument passed when the facility
X is invoked, then you must make a good faith effort to ensure that,
X in the event an application does not supply such function or
X table, the facility still operates, and performs whatever part of
X its purpose remains meaningful.
X
X (For example, a function in a library to compute square roots has
X a purpose that is entirely well-defined independent of the
X application. Therefore, Subsection 2d requires that any
X application-supplied function or table used by this function must
X be optional: if the application does not supply it, the square
X root function must still compute square roots.)
X
XThese requirements apply to the modified work as a whole. If
Xidentifiable sections of that work are not derived from the Library,
Xand can be reasonably considered independent and separate works in
Xthemselves, then this License, and its terms, do not apply to those
Xsections when you distribute them as separate works. But when you
Xdistribute the same sections as part of a whole which is a work based
Xon the Library, the distribution of the whole must be on the terms of
Xthis License, whose permissions for other licensees extend to the
Xentire whole, and thus to each and every part regardless of who wrote
Xit.
X
XThus, it is not the intent of this section to claim rights or contest
Xyour rights to work written entirely by you; rather, the intent is to
Xexercise the right to control the distribution of derivative or
Xcollective works based on the Library.
X
XIn addition, mere aggregation of another work not based on the Library
Xwith the Library (or with a work based on the Library) on a volume of
Xa storage or distribution medium does not bring the other work under
Xthe scope of this License.
X
X 3. You may opt to apply the terms of the ordinary GNU General Public
XLicense instead of this License to a given copy of the Library. To do
Xthis, you must alter all the notices that refer to this License, so
Xthat they refer to the ordinary GNU General Public License, version 2,
Xinstead of to this License. (If a newer version than version 2 of the
Xordinary GNU General Public License has appeared, then you can specify
Xthat version instead if you wish.) Do not make any other change in
Xthese notices.
X
X Once this change is made in a given copy, it is irreversible for
Xthat copy, so the ordinary GNU General Public License applies to all
Xsubsequent copies and derivative works made from that copy.
X
X This option is useful when you wish to copy part of the code of
Xthe Library into a program that is not a library.
X
X 4. You may copy and distribute the Library (or a portion or
Xderivative of it, under Section 2) in object code or executable form
Xunder the terms of Sections 1 and 2 above provided that you accompany
Xit with the complete corresponding machine-readable source code, which
Xmust be distributed under the terms of Sections 1 and 2 above on a
Xmedium customarily used for software interchange.
X
X If distribution of object code is made by offering access to copy
Xfrom a designated place, then offering equivalent access to copy the
Xsource code from the same place satisfies the requirement to
Xdistribute the source code, even though third parties are not
Xcompelled to copy the source along with the object code.
X
X 5. A program that contains no derivative of any portion of the
XLibrary, but is designed to work with the Library by being compiled or
Xlinked with it, is called a "work that uses the Library". Such a
Xwork, in isolation, is not a derivative work of the Library, and
Xtherefore falls outside the scope of this License.
X
X However, linking a "work that uses the Library" with the Library
Xcreates an executable that is a derivative of the Library (because it
Xcontains portions of the Library), rather than a "work that uses the
Xlibrary". The executable is therefore covered by this License.
XSection 6 states terms for distribution of such executables.
X
X When a "work that uses the Library" uses material from a header file
Xthat is part of the Library, the object code for the work may be a
Xderivative work of the Library even though the source code is not.
XWhether this is true is especially significant if the work can be
Xlinked without the Library, or if the work is itself a library. The
Xthreshold for this to be true is not precisely defined by law.
X
X If such an object file uses only numerical parameters, data
Xstructure layouts and accessors, and small macros and small inline
Xfunctions (ten lines or less in length), then the use of the object
Xfile is unrestricted, regardless of whether it is legally a derivative
Xwork. (Executables containing this object code plus portions of the
XLibrary will still fall under Section 6.)
X
X Otherwise, if the work is a derivative of the Library, you may
Xdistribute the object code for the work under the terms of Section 6.
XAny executables containing that work also fall under Section 6,
Xwhether or not they are linked directly with the Library itself.
X
X 6. As an exception to the Sections above, you may also compile or
Xlink a "work that uses the Library" with the Library to produce a
Xwork containing portions of the Library, and distribute that work
Xunder terms of your choice, provided that the terms permit
Xmodification of the work for the customer's own use and reverse
Xengineering for debugging such modifications.
X
X You must give prominent notice with each copy of the work that the
XLibrary is used in it and that the Library and its use are covered by
Xthis License. You must supply a copy of this License. If the work
Xduring execution displays copyright notices, you must include the
Xcopyright notice for the Library among them, as well as a reference
Xdirecting the user to the copy of this License. Also, you must do one
Xof these things:
X
X a) Accompany the work with the complete corresponding
X machine-readable source code for the Library including whatever
X changes were used in the work (which must be distributed under
X Sections 1 and 2 above); and, if the work is an executable linked
X with the Library, with the complete machine-readable "work that
X uses the Library", as object code and/or source code, so that the
X user can modify the Library and then relink to produce a modified
X executable containing the modified Library. (It is understood
X that the user who changes the contents of definitions files in the
X Library will not necessarily be able to recompile the application
X to use the modified definitions.)
X
X b) Accompany the work with a written offer, valid for at
X least three years, to give the same user the materials
X specified in Subsection 6a, above, for a charge no more
X than the cost of performing this distribution.
X
X c) If distribution of the work is made by offering access to copy
X from a designated place, offer equivalent access to copy the above
X specified materials from the same place.
X
X d) Verify that the user has already received a copy of these
X materials or that you have already sent this user a copy.
X
X For an executable, the required form of the "work that uses the
XLibrary" must include any data and utility programs needed for
Xreproducing the executable from it. However, as a special exception,
Xthe source code distributed need not include anything that is normally
Xdistributed (in either source or binary form) with the major
Xcomponents (compiler, kernel, and so on) of the operating system on
Xwhich the executable runs, unless that component itself accompanies
Xthe executable.
X
X It may happen that this requirement contradicts the license
Xrestrictions of other proprietary libraries that do not normally
Xaccompany the operating system. Such a contradiction means you cannot
Xuse both them and the Library together in an executable that you
Xdistribute.
X
X 7. You may place library facilities that are a work based on the
XLibrary side-by-side in a single library together with other library
Xfacilities not covered by this License, and distribute such a combined
Xlibrary, provided that the separate distribution of the work based on
Xthe Library and of the other library facilities is otherwise
Xpermitted, and provided that you do these two things:
X
X a) Accompany the combined library with a copy of the same work
X based on the Library, uncombined with any other library
X facilities. This must be distributed under the terms of the
X Sections above.
X
X b) Give prominent notice with the combined library of the fact
X that part of it is a work based on the Library, and explaining
X where to find the accompanying uncombined form of the same work.
X
X 8. You may not copy, modify, sublicense, link with, or distribute
Xthe Library except as expressly provided under this License. Any
Xattempt otherwise to copy, modify, sublicense, link with, or
Xdistribute the Library is void, and will automatically terminate your
Xrights under this License. However, parties who have received copies,
Xor rights, from you under this License will not have their licenses
Xterminated so long as such parties remain in full compliance.
X
X 9. You are not required to accept this License, since you have not
Xsigned it. However, nothing else grants you permission to modify or
Xdistribute the Library or its derivative works. These actions are
Xprohibited by law if you do not accept this License. Therefore, by
Xmodifying or distributing the Library (or any work based on the
XLibrary), you indicate your acceptance of this License to do so, and
Xall its terms and conditions for copying, distributing or modifying
Xthe Library or works based on it.
X
X 10. Each time you redistribute the Library (or any work based on the
XLibrary), the recipient automatically receives a license from the
Xoriginal licensor to copy, distribute, link with or modify the Library
Xsubject to these terms and conditions. You may not impose any further
Xrestrictions on the recipients' exercise of the rights granted herein.
XYou are not responsible for enforcing compliance by third parties to
Xthis License.
X
X 11. If, as a consequence of a court judgment or allegation of patent
Xinfringement or for any other reason (not limited to patent issues),
Xconditions are imposed on you (whether by court order, agreement or
Xotherwise) that contradict the conditions of this License, they do not
Xexcuse you from the conditions of this License. If you cannot
Xdistribute so as to satisfy simultaneously your obligations under this
XLicense and any other pertinent obligations, then as a consequence you
Xmay not distribute the Library at all. For example, if a patent
Xlicense would not permit royalty-free redistribution of the Library by
Xall those who receive copies directly or indirectly through you, then
Xthe only way you could satisfy both it and this License would be to
Xrefrain entirely from distribution of the Library.
X
XIf any portion of this section is held invalid or unenforceable under any
Xparticular circumstance, the balance of the section is intended to apply,
Xand the section as a whole is intended to apply in other circumstances.
X
XIt is not the purpose of this section to induce you to infringe any
Xpatents or other property right claims or to contest validity of any
Xsuch claims; this section has the sole purpose of protecting the
Xintegrity of the free software distribution system which is
Ximplemented by public license practices. Many people have made
Xgenerous contributions to the wide range of software distributed
Xthrough that system in reliance on consistent application of that
Xsystem; it is up to the author/donor to decide if he or she is willing
Xto distribute software through any other system and a licensee cannot
Ximpose that choice.
X
XThis section is intended to make thoroughly clear what is believed to
Xbe a consequence of the rest of this License.
X
X 12. If the distribution and/or use of the Library is restricted in
Xcertain countries either by patents or by copyrighted interfaces, the
Xoriginal copyright holder who places the Library under this License may add
Xan explicit geographical distribution limitation excluding those countries,
Xso that distribution is permitted only in or among countries not thus
Xexcluded. In such case, this License incorporates the limitation as if
Xwritten in the body of this License.
X
X 13. The Free Software Foundation may publish revised and/or new
Xversions of the Library General Public License from time to time.
XSuch new versions will be similar in spirit to the present version,
Xbut may differ in detail to address new problems or concerns.
X
XEach version is given a distinguishing version number. If the Library
Xspecifies a version number of this License which applies to it and
X"any later version", you have the option of following the terms and
Xconditions either of that version or of any later version published by
Xthe Free Software Foundation. If the Library does not specify a
Xlicense version number, you may choose any version ever published by
Xthe Free Software Foundation.
X
X 14. If you wish to incorporate parts of the Library into other free
Xprograms whose distribution conditions are incompatible with these,
Xwrite to the author to ask for permission. For software which is
Xcopyrighted by the Free Software Foundation, write to the Free
XSoftware Foundation; we sometimes make exceptions for this. Our
Xdecision will be guided by the two goals of preserving the free status
Xof all derivatives of our free software and of promoting the sharing
Xand reuse of software generally.
X
X NO WARRANTY
X
X 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
XWARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
XEXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
XOTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
XKIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
XIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
XPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
XLIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
XTHE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
X
X 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
XWRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
XAND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
XFOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
XCONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
XLIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
XRENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
XFAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
XSUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
XDAMAGES.
X
X END OF TERMS AND CONDITIONS
X
X Appendix: How to Apply These Terms to Your New Libraries
X
X If you develop a new library, and you want it to be of the greatest
Xpossible use to the public, we recommend making it free software that
Xeveryone can redistribute and change. You can do so by permitting
Xredistribution under these terms (or, alternatively, under the terms of the
Xordinary General Public License).
X
X To apply these terms, attach the following notices to the library. It is
Xsafest to attach them to the start of each source file to most effectively
Xconvey the exclusion of warranty; and each file should have at least the
X"copyright" line and a pointer to where the full notice is found.
X
X <one line to give the library's name and a brief idea of what it does.>
X Copyright (C) <year> <name of author>
X
X This library is free software; you can redistribute it and/or
X modify it under the terms of the GNU Library General Public
X License as published by the Free Software Foundation; either
X version 2 of the License, or (at your option) any later version.
X
X This library is distributed in the hope that it will be useful,
X but WITHOUT ANY WARRANTY; without even the implied warranty of
X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
X Library General Public License for more details.
X
X You should have received a copy of the GNU Library General Public
X License along with this library; if not, write to the Free
X Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
X
XAlso add information on how to contact you by electronic and paper mail.
X
XYou should also get your employer (if you work as a programmer) or your
Xschool, if any, to sign a "copyright disclaimer" for the library, if
Xnecessary. Here is a sample; alter the names:
X
X Yoyodyne, Inc., hereby disclaims all copyright interest in the
X library `Frob' (a library for tweaking knobs) written by James Random Hacker.
X
X <signature of Ty Coon>, 1 April 1990
X Ty Coon, President of Vice
X
XThat's all there is to it!
END_OF_FILE
if test 25265 -ne `wc -c <'COPYING.LIB'`; then
echo shar: \"'COPYING.LIB'\" unpacked with wrong size!
fi
# end of 'COPYING.LIB'
fi
if test ! -d 'doc' ; then
echo shar: Creating directory \"'doc'\"
mkdir 'doc'
fi
if test -f 'doc/main.texinfo' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'doc/main.texinfo'\"
else
echo shar: Extracting \"'doc/main.texinfo'\" \(5354 characters\)
sed "s/^X//" >'doc/main.texinfo' <<'END_OF_FILE'
X% This is really LaTeXInfo, but some time LaTeX mode is more usefull -*- LaTeX -*-
X% This is really LaTeXInfo, but some time LaTeX mode is more usefull -*- Latexinfo
-*-
X%
X% Revision: $Id: main.texinfo,v 1.4 1995/04/09 05:02:27 mohsen Exp mohsen $
X%
X%\documentstyle[12pt,latexinfo,format,smallverb,tabular]{book}
X\documentstyle[12pt,latexinfo,format]{book}
X%\documentstyle[12pt,times,latexinfo,format]{book}
X%\documentstyle[12pt,avantgarde,latexinfo,format]{book}
X%\documentstyle[12pt,palatino,latexinfo,format]{book}
X%\documentstyle[10pt,avantgarde,latexinfo,format]{book}
X
X\pagestyle{empty}
X
X\c \input{transfig} \c Used with eepic -- not needed when using psfig.
X\input{epsf}
X
X\begin{document}
X
X\c \bibliographystyle{alpha} \c [banan92]
X\c \bibliographystyle{plain} \c Numbers [1]
X
X\c \textwidth 5.2in \c for .tty generation
X
X\c Declare which indices you want to make use of.
X\newindex{cp}
X
X\title{BBDB Input and Output Filters\\
X \vspace{0.25in} {\large DRAFT}\\
X {\normalsize Version 0.1}}
X
X\author{{\normalsize Prepared by}\\
X Mohsen Banan \\
X {\tt [EMAIL PROTECTED]}\\
X Neda Communications, Inc.\\
X 17005 SE 31st Place\\
X Bellevue, WA 98008}
X
X\c (current-time-string)
X\date{April 8, 1995}
X\c \date{\today}
X
X\maketitle
X
X\c The following commands start the copyright page for the printed manual.
X\clearpage
X\vspace*{0pt plus 1filll}
X
X
X\bigskip
X\bigskip
X
X\bigskip
X
X\begin{example}
X
XThis document describes the BBDB Input and Output Filters package, a
Xutility which translates various formats from and into BBDB.
X
XCopyright \copyright 1995 Neda Communications, Inc.
X
XPublished by:
XNeda Communications, Inc.
X17005 SE 31st Place,
XBellevue, WA 98008 USA
X
X
XPermission is granted to make and distribute verbatim copies of this
Xmanual provided the copyright notice and this permission notice are
Xpreserved on all copies.
X
XPermission is granted to copy and distribute modified versions of this
Xmanual under the conditions for verbatim copying, provided that the
Xentire resulting derived work is distributed under the terms of a
Xpermission notice identical to this one.
X
XPermission is granted to copy and distribute translations of this
Xmanual into another language, under the above conditions for modified
Xversions, except that this permission notice may be stated in a
Xtranslation approved by the Foundation.
X
X\end{example}
X
X\bigskip
X\bigskip
X
X\clearpage
X\pagestyle{headings}
X
X\c Use roman numerals for the page numbers and Insert the Table of Contents.
X\pagenumbering{roman}
X\tableofcontents
X
X\c \listoftables
X\c \listoffigures
X
X\c End the Table of Contents and start numbering from 1 with Arabic numbers
X
X\clearpage
X\pagenumbering{arabic}
X
X\c Anything before the setfilename will not appear in the Info file.
X\setfilename{INFOFILE}
X
X\begin{ifinfo}
XCopyright \copyright \var{1995} \var{Neda Communications, Inc.}
X\end{ifinfo}
X
X\c The Top node contains the master menu for the Info file.
X\c This appears only in the Info file, not the printed manual.
X
X\chapter{Introduction}
X
XOver time much valuable data has been gathered in bbdb files. Many
Xwish to share parts or all of the data in their bbdb with others.
XThey also wish to have access to the same information where the
Xcomfort of emacs may not be accessible.
X
XFor these reasons, we have prepared a family of filters that convert
Xthe information in bbdb into a variety of other formats.
X
XOur hope is that over time this collection of bbdb filters will grow
Xthrough contributed code.
X
X\section{About This Package}
X
XIt has been tested with bbdb-1.50.
X
X\section{About This Manual}
X
XThis document applies to Version 0.1 of the ``BBDB Filters Package''.
X
XIt is very preliminary.
XIt is very incomplete.
X
X\section{Credits}
X
XPean Lim {\tt <[EMAIL PROTECTED]>} wrote most of this package.
X
XMohsen Banan {\tt <[EMAIL PROTECTED]>} put it all together and guided the
Xwork.
X
XNeda Communications, Inc. sponsored the work.
X
XMuch of the code is based on bbdb-print by
X{\tt Boris Goldowsky <[EMAIL PROTECTED]>}.
X
X\chapter{Output Filters}
X
X\section{HP100/200 LX}
X
X\begin{enumerate}
X\item Using \code{ bbdb-hp200lx-output} Create a .CDF (Comma Delimited
X File).
X\item Using Xlate/Merge option of HP Connectivity Pack convert the CDF file
X into PDB.
X\item Download the PDB file to you palm top.
X\end{enumerate}
X
X\section{PC Eudora Nic Names}
X
X\begin{enumerate}
X\item Using \code{ bbdb-eudora-nndbase-output} create a...
X\item Move the file to ...
X\end{enumerate}
X
XAnd to get a recipient's data base:
X
X\begin{enumerate}
X\item Using \code{ bbdb-eudora-rcpdbase-output} create a
X\item Move the file to ...
X\end{enumerate}
X
X\section{CC:Mail Nic Names}
X
X\begin{enumerate}
X\item Using \code{ bbdb-ccmail-output} create a file ...
X\item Move the file to ...
X\end{enumerate}
X
X\section{PH}
X
X\begin{enumerate}
X\item Using \code{ bbdb-ph-output} create a file ...
X\item Move the file to ...
X\end{enumerate}
X
X\chapter{Input Filters}
X
X\section{General Facilities for Input Filtering}
X
X\section{Passwd Files}
X
X
X\c ;;;;;;;;;;;;;;;; Appendix Starts Here ;;;;;;;;;;;;;
X\c \appendix
X
X\c input{app1.tex}
X
X\begin{tex}
X%\bibliography{/usr/local/lib/bib/gnu,/usr/local/lib/bib/networking,/usr/local/lib/bib/directory,/usr/local/lib/bib/rfcs}
X\end{tex}
X
X\c \twocolumn
X\node Concept Index, Top, First Chapter, Top
X\unnumbered{Concept Index}
X
X\printindex{cp}
X
X\end{document}
X
END_OF_FILE
if test 5354 -ne `wc -c <'doc/main.texinfo'`; then
echo shar: \"'doc/main.texinfo'\" unpacked with wrong size!
fi
# end of 'doc/main.texinfo'
fi
if test -f 'doc/makefile' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'doc/makefile'\"
else
echo shar: Extracting \"'doc/makefile'\" \(2759 characters\)
sed "s/^X//" >'doc/makefile' <<'END_OF_FILE'
X#
X# RCS $Id: makefile,v 1.1 1995/04/09 04:20:29 mohsen Exp $
X#
X
X# The name of the file
XMANUAL=main
XINFOFILE= bbdb-filters.info
X
XTEXPARTS =
X
XEPSFIGS =
X
XTGRINDS =
X
XEOEBASE = /usr/public/eoe/lisp/public/bbdbPlus
XEOEINFO = /usr/public/eoe/info
X
X# The name of your DVI to PS filter
XDVIPS=dvips -f
X
X# The name of your GNU Emacs
XEMACS= xemacs
X
XLATEXINFO= /usr/public/tex/latexinfo1.7
X
X###
X### SHOUL NOT HAVE TO TOUCH ANYTHING BELOW HERE
X###
XSHELL=/bin/sh
X
X.SUFFIXES:
X.SUFFIXES: .lpr .ps .tty .xdvi .dvi .tex .ptex .eps .fig .c
X
X.fig.eps:
X fig2dev -L ps $< > $@
X
X.c.tex:
X tgrind -f $< > $@
X
X
X# DEFAULT TARGET
X#all: $(INFOFILE) $(MANUAL).ps
Xall: fast.ps
X
X$(INFOFILE): $(MANUAL).tex $(TEXPARTS)
X rm -f makeinfo.el
X sed -e "s+MANUAL+$(MANUAL)+" \
X -e "s+LATEXINFO+$(LATEXINFO)+" $(LATEXINFO)/local/makeinfo.tmplt >
makeinfo.el
X $(EMACS) -batch -q -l makeinfo.el
X #cp $(INFOFILE) /usr/public/eoe/info
X
X$(MANUAL).tex: $(MANUAL).texinfo $(TEXPARTS)
X sed -e "s+INFOFILE+$(INFOFILE)+" $(MANUAL).texinfo | expand > $(MANUAL).tex
X -rm -f maketex.el
X sed -e "s+MANUAL+$(MANUAL)+" \
X -e "s+LATEXINFO+$(LATEXINFO)+" $(LATEXINFO)/local/maketex.tmplt >
maketex.el
X $(EMACS) -batch -q -l maketex.el
X
X$(MANUAL).dvi: $(MANUAL).tex $(EPSFIGS) $(TGRINDS)
X latex2dvi $(MANUAL).tex
X
X$(MANUAL).bbl:
X latex $(MANUAL)
X -bibtex $(MANUAL)
X latex $(MANUAL)
X
X$(MANUAL).xdvi: $(MANUAL).dvi
X xdvi $(MANUAL).dvi &
X
X$(MANUAL).ps: $(MANUAL).dvi
X $(DVIPS) $(MANUAL) > $(MANUAL).ps
X
X$(MANUAL).lpr: $(MANUAL).ps
X lpr $(MANUAL).ps
X
Xinstall: $(INFOFILE)
X cp $(INFOFILE) $(EOEINFO)/$(INFOFILE)
X
X#
X# Fast Processing
X#
X
Xfast.tex: $(MANUAL).texinfo $(TEXPARTS)
X sed -e "s+INFOFILE+$(INFOFILE)+" -e "s+mbinput+input+" $(MANUAL).texinfo |
expand > fast.tex
X
Xfast.dvi: fast.tex $(EPSFIGS) $(TGRINDS)
X latex fast.tex
X
Xfast.xdvi: fast.dvi
X xdvi fast.dvi &
X
Xfast.ps: fast.dvi
X $(DVIPS) fast > fast.ps
X
Xfast.xps: fast.ps
X pageview fast.ps &
X
Xfast.lpr: fast.ps
X lpr fast.ps
X
X
X# TeX Figures for when dvi files are needed. Just an example
X#XX.tex YY.tex: XX.fig YY.fig
X# transfig -m 1.00 -L eepic -M fig.make XX.fig YY.fig
X# make -f fig.make
X
X# Encapsulated PostScript figures -- Done by the Suffix rules
X#XX.eps: XX.fig
X# fig2dev -L ps -m 1.0 $< > $@
X
X# Src Code
X#cot-calling.tex: cot-calling.c
X# tgrind -f $< > $@
X
X
Xshar::
X split $(MANUAL).tex $(MANUAL)-
X
Xclean:
X rm -f $(MANUAL).log $(MANUAL).blg makeinfo.el maketex.el *~ #~
X
Xveryclean: clean
X rm -f $(MANUAL).ps $(MANUAL).dvi $(MANUAL).dlog $(MANUAL).info
X
Xrealclean: veryclean
X rm -f $(MANUAL).aux $(MANUAL).bbl $(MANUAL).blg $(MANUAL).cp \
X $(MANUAL).toc $(MANUAL).cps $(MANUAL).lot $(MANUAL).lof fig.make \
X transfig.tex $(MANUAL).tex $(INFOFILE) \
X fast.aux fast.dvi fast.log fast.ps fast.tex fast.toc fast.cp \
X $(EPSFIGS) $(TGRINDS)
X
END_OF_FILE
if test 2759 -ne `wc -c <'doc/makefile'`; then
echo shar: \"'doc/makefile'\" unpacked with wrong size!
fi
# end of 'doc/makefile'
fi
if test -f 'doc/bbdb-filters.info' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'doc/bbdb-filters.info'\"
else
echo shar: Extracting \"'doc/bbdb-filters.info'\" \(4301 characters\)
sed "s/^X//" >'doc/bbdb-filters.info' <<'END_OF_FILE'
XInfo file: bbdb-filters.info, -*-Text-*-
Xproduced by latexinfo-format-buffer
Xfrom file: main.tex
X
X
X
XFile: bbdb-filters.info Node: Top, Prev: (dir)Top, Up: (dir)Top, Next: Introduction
X
XCopyright (C)1995 NEDA COMMUNICATIONS, INC.
X
X
X* Menu:
X
X* Introduction::
X* Output Filters::
X* Input Filters::
X
X
X
XFile: bbdb-filters.info Node: Introduction, Prev: Top, Up: Top, Next: About This
Package
X
XIntroduction
X************
X
X
XOver time much valuable data has been gathered in bbdb files. Many
Xwish to share parts or all of the data in their bbdb with others.
XThey also wish to have access to the same information where the
Xcomfort of emacs may not be accessible.
X
XFor these reasons, we have prepared a family of filters that convert
Xthe information in bbdb into a variety of other formats.
X
XOur hope is that over time this collection of bbdb filters will grow
Xthrough contributed code.
X
X
X* Menu:
X
X* About This Package::
X* About This Manual::
X* Credits::
X
X
X
XFile: bbdb-filters.info Node: About This Package, Prev: Introduction, Up:
Introduction, Next: About This Manual
X
XAbout This Package
X==================
X
X
XIt has been tested with bbdb-1.50.
X
X
XFile: bbdb-filters.info Node: About This Manual, Prev: About This Package, Up:
Introduction, Next: Credits
X
XAbout This Manual
X=================
X
X
XThis document applies to Version 0.1 of the "BBDB Filters Package".
X
XIt is very preliminary.
XIt is very incomplete.
X
X
XFile: bbdb-filters.info Node: Credits, Prev: About This Manual, Up: Introduction,
Next: Output Filters
X
XCredits
X=======
X
X
XPean Lim {<[EMAIL PROTECTED]>} wrote most of this package.
X
XMohsen Banan {<[EMAIL PROTECTED]>} put it all together and guided the
Xwork.
X
XNeda Communications, Inc. sponsored the work.
X
XMuch of the code is based on bbdb-print by
X{Boris Goldowsky <[EMAIL PROTECTED]>}.
X
X
XFile: bbdb-filters.info Node: Output Filters, Prev: Credits, Up: Top, Next:
HP100/200 LX
X
XOutput Filters
X**************
X
X
X
X* Menu:
X
X* HP100/200 LX::
X* PC Eudora Nic Names::
X* CC:Mail Nic Names::
X* PH::
X
X
X
XFile: bbdb-filters.info Node: HP100/200 LX, Prev: Output Filters, Up: Output
Filters, Next: PC Eudora Nic Names
X
XHP100/200 LX
X============
X
X
X 1. Using ` bbdb-hp200lx-output' Create a .CDF (Comma Delimited
X File).
X 2. Using Xlate/Merge option of HP Connectivity Pack convert the CDF file
X into PDB.
X 3. Download the PDB file to you palm top.
X
X
X
XFile: bbdb-filters.info Node: PC Eudora Nic Names, Prev: HP100/200 LX, Up: Output
Filters, Next: CC:Mail Nic Names
X
XPC Eudora Nic Names
X===================
X
X
X 1. Using ` bbdb-eudora-nndbase-output' create a...
X 2. Move the file to ...
X
X
XAnd to get a recipient's data base:
X
X 1. Using ` bbdb-eudora-rcpdbase-output' create a
X 2. Move the file to ...
X
X
X
XFile: bbdb-filters.info Node: CC:Mail Nic Names, Prev: PC Eudora Nic Names, Up:
Output Filters, Next: PH
X
XCC:Mail Nic Names
X=================
X
X
X 1. Using ` bbdb-ccmail-output' create a file ...
X 2. Move the file to ...
X
X
X
XFile: bbdb-filters.info Node: PH, Prev: CC:Mail Nic Names, Up: Output Filters, Next:
Input Filters
X
XPH
X==
X
X
X 1. Using ` bbdb-ph-output' create a file ...
X 2. Move the file to ...
X
X
X
XFile: bbdb-filters.info Node: Input Filters, Prev: PH, Up: Top, Next: General
Facilities for Input Filtering
X
XInput Filters
X*************
X
X
X
X* Menu:
X
X* General Facilities for Input Filtering::
X* Passwd Files::
X
X
X
XFile: bbdb-filters.info Node: General Facilities for Input Filtering, Prev: Input
Filters, Up: Input Filters, Next: Passwd Files
X
XGeneral Facilities for Input Filtering
X======================================
X
X
X
XFile: bbdb-filters.info Node: Passwd Files, Prev: General Facilities for Input
Filtering, Up: Input Filters, Next: Top
X
XPasswd Files
X============
X
X
X
X
X
X
XFile: bbdb-filters.info Node: Concept Index, Prev: First Chapter, Up: Top, Next: Top
X
XConcept Index
X*************
X
X
X
X* Menu:
X
X* About This Manual: About This Manual.
X* About This Package: About This Package.
X* CC:Mail Nic Names: CC:Mail Nic Names.
X* Credits: Credits.
X* General Facilities for Input Filtering: General Facilities for Input Filtering.
X* HP100/200 LX: HP100/200 LX.
X* Input Filters: Input Filters.
X* Introduction: Introduction.
X* Output Filters: Output Filters.
X* Passwd Files: Passwd Files.
X* PC Eudora Nic Names: PC Eudora Nic Names.
X* PH: PH.
X
X
END_OF_FILE
echo shar: 14 control characters may be missing from \"'doc/bbdb-filters.info'\"
if test 4301 -ne `wc -c <'doc/bbdb-filters.info'`; then
echo shar: \"'doc/bbdb-filters.info'\" unpacked with wrong size!
fi
# end of 'doc/bbdb-filters.info'
fi
if test -f 'doc/main.tex' -a "${1}" != "-c" ; then
echo shar: Will not clobber existing file \"'doc/main.tex'\"
else
echo shar: Extracting \"'doc/main.tex'\" \(6861 characters\)
sed "s/^X//" >'doc/main.tex' <<'END_OF_FILE'
X% This is really LaTeXInfo, but some time LaTeX mode is more usefull -*- LaTeX -*-
X% This is really LaTeXInfo, but some time LaTeX mode is more usefull -*- Latexinfo
-*-
X%
X% Revision: $Id: main.texinfo,v 1.4 1995/04/09 05:02:27 mohsen Exp mohsen $
X%
X%\documentstyle[12pt,latexinfo,format,smallverb,tabular]{book}
X\documentstyle[12pt,latexinfo,format]{book}
X%\documentstyle[12pt,times,latexinfo,format]{book}
X%\documentstyle[12pt,avantgarde,latexinfo,format]{book}
X%\documentstyle[12pt,palatino,latexinfo,format]{book}
X%\documentstyle[10pt,avantgarde,latexinfo,format]{book}
X
X\pagestyle{empty}
X
X\c \input{transfig} \c Used with eepic -- not needed when using psfig.
X\input{epsf}
X
X\begin{document}
X
X\c \bibliographystyle{alpha} \c [banan92]
X\c \bibliographystyle{plain} \c Numbers [1]
X
X\c \textwidth 5.2in \c for .tty generation
X
X\c Declare which indices you want to make use of.
X\newindex{cp}
X
X\title{BBDB Input and Output Filters\\
X \vspace{0.25in} {\large DRAFT}\\
X {\normalsize Version 0.1}}
X
X\author{{\normalsize Prepared by}\\
X Mohsen Banan \\
X {\tt [EMAIL PROTECTED]}\\
X Neda Communications, Inc.\\
X 17005 SE 31st Place\\
X Bellevue, WA 98008}
X
X\c (current-time-string)
X\date{April 8, 1995}
X\c \date{\today}
X
X\maketitle
X
X\c The following commands start the copyright page for the printed manual.
X\clearpage
X\vspace*{0pt plus 1filll}
X
X
X\bigskip
X\bigskip
X
X\bigskip
X
X\begin{example}
X
XThis document describes the BBDB Input and Output Filters package, a
Xutility which translates various formats from and into BBDB.
X
XCopyright \copyright 1995 Neda Communications, Inc.
X
XPublished by:
XNeda Communications, Inc.
X17005 SE 31st Place,
XBellevue, WA 98008 USA
X
X
XPermission is granted to make and distribute verbatim copies of this
Xmanual provided the copyright notice and this permission notice are
Xpreserved on all copies.
X
XPermission is granted to copy and distribute modified versions of this
Xmanual under the conditions for verbatim copying, provided that the
Xentire resulting derived work is distributed under the terms of a
Xpermission notice identical to this one.
X
XPermission is granted to copy and distribute translations of this
Xmanual into another language, under the above conditions for modified
Xversions, except that this permission notice may be stated in a
Xtranslation approved by the Foundation.
X
X\end{example}
X
X\bigskip
X\bigskip
X
X\clearpage
X\pagestyle{headings}
X
X\c Use roman numerals for the page numbers and Insert the Table of Contents.
X\pagenumbering{roman}
X\tableofcontents
X
X\c \listoftables
X\c \listoffigures
X
X\c End the Table of Contents and start numbering from 1 with Arabic numbers
X
X\clearpage
X\pagenumbering{arabic}
X
X\c Anything before the setfilename will not appear in the Info file.
X\setfilename{bbdb-filters.info}
X\node Top, Introduction, (dir)Top, (dir)Top
X
X\begin{ifinfo}
XCopyright \copyright \var{1995} \var{Neda Communications, Inc.}
X\end{ifinfo}
X
X\c The Top node contains the master menu for the Info file.
X\c This appears only in the Info file, not the printed manual.
X
X
X\begin{menu}
X* Introduction::
X* Output Filters::
X* Input Filters::
X\end{menu}
X
X\node Introduction, About This Package, Top, Top
X\chapter{Introduction}
X\cindex{Introduction}
X
XOver time much valuable data has been gathered in bbdb files. Many
Xwish to share parts or all of the data in their bbdb with others.
XThey also wish to have access to the same information where the
Xcomfort of emacs may not be accessible.
X
XFor these reasons, we have prepared a family of filters that convert
Xthe information in bbdb into a variety of other formats.
X
XOur hope is that over time this collection of bbdb filters will grow
Xthrough contributed code.
X
X
X\begin{menu}
X* About This Package::
X* About This Manual::
X* Credits::
X\end{menu}
X
X\node About This Package, About This Manual, Introduction, Introduction
X\section{About This Package}
X\cindex{About This Package}
X
XIt has been tested with bbdb-1.50.
X
X\node About This Manual, Credits, About This Package, Introduction
X\section{About This Manual}
X\cindex{About This Manual}
X
XThis document applies to Version 0.1 of the ``BBDB Filters Package''.
X
XIt is very preliminary.
XIt is very incomplete.
X
X\node Credits, Output Filters, About This Manual, Introduction
X\section{Credits}
X\cindex{Credits}
X
XPean Lim {\tt <[EMAIL PROTECTED]>} wrote most of this package.
X
XMohsen Banan {\tt <[EMAIL PROTECTED]>} put it all together and guided the
Xwork.
X
XNeda Communications, Inc. sponsored the work.
X
XMuch of the code is based on bbdb-print by
X{\tt Boris Goldowsky <[EMAIL PROTECTED]>}.
X
X\node Output Filters, HP100/200 LX, Credits, Top
X\chapter{Output Filters}
X\cindex{Output Filters}
X
X
X\begin{menu}
X* HP100/200 LX::
X* PC Eudora Nic Names::
X* CC:Mail Nic Names::
X* PH::
X\end{menu}
X
X\node HP100/200 LX, PC Eudora Nic Names, Output Filters, Output Filters
X\section{HP100/200 LX}
X\cindex{HP100/200 LX}
X
X\begin{enumerate}
X\item Using \code{ bbdb-hp200lx-output} Create a .CDF (Comma Delimited
X File).
X\item Using Xlate/Merge option of HP Connectivity Pack convert the CDF file
X into PDB.
X\item Download the PDB file to you palm top.
X\end{enumerate}
X
X\node PC Eudora Nic Names, CC:Mail Nic Names, HP100/200 LX, Output Filters
X\section{PC Eudora Nic Names}
X\cindex{PC Eudora Nic Names}
X
X\begin{enumerate}
X\item Using \code{ bbdb-eudora-nndbase-output} create a...
X\item Move the file to ...
X\end{enumerate}
X
XAnd to get a recipient's data base:
X
X\begin{enumerate}
X\item Using \code{ bbdb-eudora-rcpdbase-output} create a
X\item Move the file to ...
X\end{enumerate}
X
X\node CC:Mail Nic Names, PH, PC Eudora Nic Names, Output Filters
X\section{CC:Mail Nic Names}
X\cindex{CC:Mail Nic Names}
X
X\begin{enumerate}
X\item Using \code{ bbdb-ccmail-output} create a file ...
X\item Move the file to ...
X\end{enumerate}
X
X\node PH, Input Filters, CC:Mail Nic Names, Output Filters
X\section{PH}
X\cindex{PH}
X
X\begin{enumerate}
X\item Using \code{ bbdb-ph-output} create a file ...
X\item Move the file to ...
X\end{enumerate}
X
X\node Input Filters, General Facilities for Input Filtering, PH, Top
X\chapter{Input Filters}
X\cindex{Input Filters}
X
X
X\begin{menu}
X* General Facilities for Input Filtering::
X* Passwd Files::
X\end{menu}
X
X\node General Facilities for Input Filtering, Passwd Files, Input Filters, Input
Filters
X\section{General Facilities for Input Filtering}
X\cindex{General Facilities for Input Filtering}
X
X\node Passwd Files, Top, General Facilities for Input Filtering, Input Filters
X\section{Passwd Files}
X\cindex{Passwd Files}
X
X
X\c ;;;;;;;;;;;;;;;; Appendix Starts Here ;;;;;;;;;;;;;
X\c \appendix
X
X\c input{app1.tex}
X
X\begin{tex}
X%\bibliography{/usr/local/lib/bib/gnu,/usr/local/lib/bib/networking,/usr/local/lib/bib/directory,/usr/local/lib/bib/rfcs}
X\end{tex}
X
X\c \twocolumn
X\node Concept Index, Top, First Chapter, Top
X\unnumbered{Concept Index}
X
X\printindex{cp}
X
X\end{document}
X
END_OF_FILE
if test 6861 -ne `wc -c <'doc/main.tex'`; then
echo shar: \"'doc/main.tex'\" unpacked with wrong size!
fi
# end of 'doc/main.tex'
fi
echo shar: End of shell archive.
exit 0