* README: Add description about MU-CITE.
[elisp/lsdb.git] / README
1 -*- mode: text -*-
2 .* What's LSDB
3
4 LSDB (The Lovely Sister Database) is a rolodex-like database program
5 for SEMI based MUA.  It's intended to be a lightweight relacement for
6 BBDB (The Insidious Big Brother Database).  Unfortunately, it
7 currently doesn't support the all features of BBDB.
8
9 .* Installation
10
11 .. (a) run in expanded place
12
13 If you don't want to install other directories, please do only
14 following:
15
16         % make
17
18 You can specify the emacs command name, for example
19
20         % make install EMACS=xemacs
21
22 If `EMACS=...' is omitted, EMACS=emacs is used.
23
24 .. (b) make install
25
26 If you want to install other directories, please do following:
27
28         % make install
29
30 .. (c) install as a XEmacs package
31
32 If you want to install to XEmacs package directory, please do
33 following:
34
35         % make install-package
36
37 .* MUA Specific Installation
38
39 There are the convenient ways to get the LSDB functions insinuate into
40 some particular MUA.  Only Semi-gnus and Wanderlust are currently
41 supported.
42
43 If you use Semi-gnus or its variant, put the following lines into your
44 ~/.gnus and you will get the functions in this package autoloaded.
45
46 (autoload 'lsdb-gnus-insinuate "lsdb")
47 (autoload 'lsdb-gnus-insinuate-message "lsdb")
48 (add-hook 'gnus-startup-hook 'lsdb-gnus-insinuate)
49 (add-hook 'message-setup-hook
50           (lambda ()
51              (define-key message-mode-map "\M-\t" 'lsdb-complete-name)))
52
53 If you use Wanderlust, put the following lines into your ~/.wl:
54 (require 'lsdb)
55 (lsdb-wl-insinuate)
56 (add-hook 'wl-draft-mode-hook
57           (lambda ()
58              (define-key wl-draft-mode-map "\M-\t" 'lsdb-complete-name)))
59
60 If you use MU-CITE, put the following lines into your ~/.emacs:
61 (autoload 'lsdb-mu-insinuate "lsdb")
62 (eval-after-load "mu-cite"
63   '(lsdb-mu-insinuate))
64
65 .* Bug reports
66 If you found bugs, please drop a note to the EMACS-MIME Mailing List:
67
68         emacs-mime-en@m17n.org  (English)
69         emacs-mime-ja@m17n.org  (Japanese)
70
71 .* API
72 The API are quite simple but not written in a way that maximizes
73 flexibility.
74
75 .. Gathering Records
76 . : lsdb-update-records<f>
77 lsdb-update-records<f> is called from the buffer which contains raw
78 contents of MIME entity.  Once it is called, it returns a list of
79 records which could be gathered from the buffer.
80
81 .. Display Records
82 . : lsdb-display-record<f>
83 lsdb-display-record<f> takes only one record, pops up a window, and
84 displays the formatted contents of the record within the window.
85 If you want to multiple records such as search results at the same
86 time, use lsdb-display-records<f> instead.
87
88 .. Internal Data Model
89 . : lsdb-hash-table
90 lsdb-hash-table is the variable which holds all the records in LSDB.
91 You can operate on this variable in similar fashion to CL's
92 hash-table: lsdb-puthash for puthash, lsdb-gethash to gethash,
93 lsdh-maphash to maphash are available to you.  For example, you can
94 write the following expression to get the record for "Daiki Ueno":
95
96 (lsdb-gethash "Daiki Ueno" lsdb-hash-table)
97
98 =>
99
100 ((last-modified . "2002-04-23")
101  (creation-date . "2002-04-26")
102  (net "ueno@unixuser.org")
103  (mailing-list "emacs-mime-ja")
104  (attribution . "DU")
105  (user-agent "T-gnus/6.15.6 (based on Oort Gnus v0.06) (revision 03)"))
106
107 .* Local emacs vars.
108 The following `outline-layout' local variable setting:
109   - closes all topics from the first topic to just before the third-to-last,
110   - shows the children of the third to last (config vars)
111   - and the second to last (code section),
112   - and closes the last topic (this local-variables section).
113 Local variables:
114 outline-layout: (0 : -1 -1 0)
115 End: