| 1 |
Copyright (C) 2010-2023 Free Software Foundation, Inc. |
| 2 |
See the end of the file for license conditions. |
| 3 |
|
| 4 |
BBDB is the Insidious Big Brother Database for GNU Emacs. |
| 5 |
It provides an address book for email and snail mail addresses, |
| 6 |
phone numbers and the like. It can be linked with various Emacs mail |
| 7 |
clients (Message and Mail mode, Rmail, Gnus, MH-E, Mu4e, VM, Notmuch, |
| 8 |
and Wanderlust). BBDB is fully customizable. |
| 9 |
|
| 10 |
BBDB is available at |
| 11 |
http://elpa.gnu.org/packages/bbdb.html |
| 12 |
To install this package, run in Emacs: |
| 13 |
M-x package-install RET bbdb RET |
| 14 |
|
| 15 |
BBDB is also available at |
| 16 |
http://savannah.nongnu.org/projects/bbdb/ |
| 17 |
To check it out, use |
| 18 |
git clone https://git.savannah.nongnu.org/git/bbdb.git |
| 19 |
|
| 20 |
Questions, comments, suggestions, and bug reports may be directed to |
| 21 |
the BBDB mailing list at [email protected]. |
| 22 |
To subscribe to this list, go to |
| 23 |
https://lists.nongnu.org/mailman/listinfo/bbdb-user. |
| 24 |
|
| 25 |
================================================================== |
| 26 |
Installation: |
| 27 |
|
| 28 |
To install this package from GNU ELPA, run in Emacs: |
| 29 |
|
| 30 |
M-x package-install RET bbdb RET |
| 31 |
|
| 32 |
To compile and install BBDB from Savannah with `make' |
| 33 |
(see also the generic file INSTALL): |
| 34 |
|
| 35 |
0) (BBDB development version only) |
| 36 |
|
| 37 |
Configure the configure process: |
| 38 |
|
| 39 |
Run `autogen.sh' in the top directory of the BBDB code. |
| 40 |
This creates the `configure' script required for step 1). |
| 41 |
|
| 42 |
1) Configure the build process: |
| 43 |
|
| 44 |
Run the `configure' script in the top directory of the BBDB code. |
| 45 |
This performs a number of checks on your system and generates the |
| 46 |
Makefiles accordingly. You need at least GNU Emacs 24. |
| 47 |
|
| 48 |
The `configure' script comes with various options: |
| 49 |
|
| 50 |
`--with-mu4e-dir=DIR' specifies the path where Mu4e can be found. |
| 51 |
Without this option the resulting BBDB build does not support Mu4e. |
| 52 |
|
| 53 |
`--with-vm-dir=DIR' specifies the path where VM can be found. |
| 54 |
Without this option the resulting BBDB build does not support VM. |
| 55 |
|
| 56 |
`--with-wl-dir=DIR' specifies the path where Wanderlust can be found. |
| 57 |
Without this option the resulting BBDB build does not support WL. |
| 58 |
|
| 59 |
`--with-notmuch-dir=DIR' specifies the path where Notmuch can be found. |
| 60 |
Without this option the resulting BBDB build does not support Notmuch. |
| 61 |
|
| 62 |
`--with-lispdir=DIR' specifies where to install the lisp files. |
| 63 |
|
| 64 |
Use `configure --help' to see all available options. |
| 65 |
|
| 66 |
2) Build BBDB: |
| 67 |
|
| 68 |
To build BBDB type 'make'. |
| 69 |
|
| 70 |
If you use the BBDB development version, but you do not have autoconf, |
| 71 |
go to the lisp directory and type 'make --makefile=./makefile-temp'. |
| 72 |
|
| 73 |
3) Install BBDB: |
| 74 |
|
| 75 |
To install BBDB type `make install'. |
| 76 |
This installs all files in their usual system directories. |
| 77 |
You can override these defaults via respective options |
| 78 |
for the configure script. |
| 79 |
|
| 80 |
The TeX files in the ./tex directory are installed in ${datadir} |
| 81 |
which defaults to /usr/local/share/bbdb/. These files are only |
| 82 |
used by BBDB. They need not be known to your local TeX installation. |
| 83 |
See the user variable bbdb-tex-path below. |
| 84 |
|
| 85 |
`make install' is not required to run BBDB. |
| 86 |
|
| 87 |
4) Activate BBDB: |
| 88 |
|
| 89 |
i) If the BBDB lisp files are in a directory |
| 90 |
"/path/to/bbdb/lisp" you can use in your Emacs init file |
| 91 |
|
| 92 |
(require 'bbdb-loaddefs "/path/to/bbdb/lisp/bbdb-loaddefs.el") |
| 93 |
|
| 94 |
This adds "/path/to/bbdb/lisp" to the load-path; so it is all |
| 95 |
you need to make BBDB known to Emacs. |
| 96 |
|
| 97 |
ii) The user variable bbdb-tex-path should point to the directory |
| 98 |
where the BBDB TeX files reside (default /usr/local/share/bbdb). |
| 99 |
|
| 100 |
=============================================================================== |
| 101 |
Usage notes |
| 102 |
|
| 103 |
BBDB 3 is the first release of BBDB after a long time. |
| 104 |
Up to BBDB 3.1.2 it requires GNU Emacs 23 or newer. |
| 105 |
More recent versions require GNU Emacs 24 or newer. |
| 106 |
|
| 107 |
The code of BBDB 3 is still under development. |
| 108 |
While it should work reliably, users of previous versions of BBDB |
| 109 |
are advised that the format of the BBDB database file has changed. |
| 110 |
Migration to the new format should happen automatically. |
| 111 |
Yet it is recommended to make a copy of the old file, in case |
| 112 |
something unexpected happens or you might want to go back. |
| 113 |
|
| 114 |
As compared with BBDB 2.xx, many variables, functions, and commands |
| 115 |
have changed in BBDB 3. Most likely you will have to review your |
| 116 |
customizations carefully. You may want to call bbdb-undocumented-variables |
| 117 |
to identify outdated (i.e., now usually undocumented) variables in |
| 118 |
your init file. Those upgrading from BBDB 2.xx may also find this |
| 119 |
Emacs wiki page helpful: https://www.emacswiki.org/emacs/UpgradeBBDB |
| 120 |
All user variables for the core of BBDB 3 are listed at the beginning |
| 121 |
of bbdb.el. Some extensions of BBDB 3 define their user variables |
| 122 |
at the beginning of the respective files. |
| 123 |
|
| 124 |
Generally the default values for user variables are chosen such that they make |
| 125 |
BBDB the least aggressive. You can customize this behavior in many ways. |
| 126 |
See below for an overview. |
| 127 |
|
| 128 |
The BBDB info manual is still awaiting a more complete overhaul. |
| 129 |
|
| 130 |
|
| 131 |
BBDB interface with mail user agents (MUAs) |
| 132 |
=========================================== |
| 133 |
|
| 134 |
BBDB can interface with various mail user agents (MUAs). |
| 135 |
These include Rmail, Gnus, VM, MH-E, Mu4e, Notmuch, Wanderlust, Message |
| 136 |
and Mail mode. This lets you |
| 137 |
|
| 138 |
- display the BBDB records for the sender and/or recipients of a |
| 139 |
message you are viewing |
| 140 |
|
| 141 |
- create or update the BBDB records for the sender and/or |
| 142 |
recipients of a message |
| 143 |
|
| 144 |
- add annotations to the BBDB records for the sender and/or |
| 145 |
recipients of a message |
| 146 |
|
| 147 |
There are two ways for BBDB to interface with MUAs: |
| 148 |
|
| 149 |
Interactive commands |
| 150 |
-------------------- |
| 151 |
|
| 152 |
Call bbdb-initialize (usually in your init file) to initialize |
| 153 |
the MUA interfaces based on interactive commands. |
| 154 |
|
| 155 |
MUA commands include |
| 156 |
|
| 157 |
bbdb-mua-display-records, bbdb-mua-display-sender, bbdb-mua-display-recipients |
| 158 |
bbdb-annotate-record, bbdb-mua-annotate-sender, bbdb-mua-annotate-recipients |
| 159 |
bbdb-mua-edit-field, bbdb-mua-edit-field-sender, bbdb-mua-edit-field-recipients |
| 160 |
|
| 161 |
These MUA commands operate either on existing records only. Or they |
| 162 |
can also create new records. |
| 163 |
|
| 164 |
All these commands are controlled by bbdb-mua-interactive-action. |
| 165 |
This is a cons pair (WITHOUT-PREFIX . WITH-PREFIX). |
| 166 |
The car is used if the command is called without a prefix. |
| 167 |
The cdr is used if the command is called with a prefix (and if the prefix |
| 168 |
is not used for another purpose). |
| 169 |
The underlying idea is that the car can provide a less aggressive default |
| 170 |
such as `search' or `update' (see below), whereas the cdr can provide more |
| 171 |
aggressive behavior such as `create'. |
| 172 |
|
| 173 |
WITHOUT-PREFIX and WITH-PREFIX may take the values |
| 174 |
(here ADDRESS is an email address found in a message): |
| 175 |
nil Do nothing. |
| 176 |
search Search for existing records matching ADDRESS. |
| 177 |
update Search for existing records matching ADDRESS; |
| 178 |
update name and mail field if necessary. |
| 179 |
query Search for existing records matching ADDRESS; |
| 180 |
query for creation of a new record if the record does not exist. |
| 181 |
create or t Search for existing records matching ADDRESS; |
| 182 |
create a new record if it does not yet exist. |
| 183 |
a function This functions will be called with no arguments. |
| 184 |
It should return one of the above values (see below). |
| 185 |
read Read the value interactively. |
| 186 |
|
| 187 |
BBDB 2 also used MUA-specific variables bbdb/MUA-update-records-mode |
| 188 |
to control its interfaces with MUAs. If you liked this feature, use |
| 189 |
the function bbdb-mua to define your own function to get MUA-specific |
| 190 |
values for WITHOUT-PREFIX and WITH-PREFIX. |
| 191 |
|
| 192 |
Noninteractive functions |
| 193 |
------------------------ |
| 194 |
|
| 195 |
Call bbdb-mua-auto-update-init (usually in your init file) |
| 196 |
to hook BBDB's hook function bbdb-mua-auto-update into the MUAs. |
| 197 |
|
| 198 |
bbdb-mua-auto-update automatically updates the BBDB records for the |
| 199 |
sender and/or recipients of a message. If bbdb-mua-pop-up is non-nil, |
| 200 |
the matching records are also displayed in a continuously updated BBDB window, |
| 201 |
|
| 202 |
The behavior of bbdb-mua-auto-update is controlled by bbdb-mua-auto-action. |
| 203 |
This may take the same values as bbdb-mua-interactive-action (except read). |
| 204 |
Binding this to a function is often most helpful for noninteractive use. |
| 205 |
For example, you may want to bind bbdb-mua-auto-action to the function |
| 206 |
bbdb-select-message, see bbdb-accept-message-alist and |
| 207 |
bbdb-ignore-message-alist. If a message is accepted by bbdb-select-message, |
| 208 |
the actual action performed by BBDB (i.e., the return value of |
| 209 |
bbdb-select-message) is given by bbdb-mua-action. |
| 210 |
|
| 211 |
================================================================== |
| 212 |
|
| 213 |
Notes for BBDB lisp hackers: |
| 214 |
---------------------------- |
| 215 |
|
| 216 |
If you write your own functions and commands to modify BBDB records, |
| 217 |
do not modify the records directly. The recommended sequence of calls is |
| 218 |
|
| 219 |
- one or multiple calls of bbdb-record-set-field for the respective |
| 220 |
fields to be changed. This not only sets the fields, but it also |
| 221 |
ensures the integrity of the database. Also, this makes your code |
| 222 |
more robust with respect to possible future changes of BBDB's |
| 223 |
innermost internals. |
| 224 |
|
| 225 |
- a call of bbdb-change-record which updates the database after a |
| 226 |
change of record and redisplays the records. |
| 227 |
|
| 228 |
- To display newly created records call bbdb-display-records. |
| 229 |
|
| 230 |
================================================================== |
| 231 |
|
| 232 |
Copyright (C) 2010-2023 Free Software Foundation, Inc. |
| 233 |
|
| 234 |
This file is part of the Insidious Big Brother Database (aka BBDB), |
| 235 |
|
| 236 |
BBDB is free software: you can redistribute it and/or modify |
| 237 |
it under the terms of the GNU General Public License as published by |
| 238 |
the Free Software Foundation, either version 3 of the License, or |
| 239 |
(at your option) any later version. |
| 240 |
|
| 241 |
BBDB is distributed in the hope that it will be useful, |
| 242 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 243 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 244 |
GNU General Public License for more details. |
| 245 |
|
| 246 |
You should have received a copy of the GNU General Public License |
| 247 |
along with BBDB. If not, see <http://www.gnu.org/licenses/>. |