The Little Brother's Database (lbdb)
This package was inspired by the Big Brother Database package available for various Emacs mailers, and by Brandon Long's "external query" patch for the Mutt mail user agent. (Note that this patch has been incorporated into the main-line mutt versions as of mutt 0.93.)
The package doesn't use any formal database libraries or languages, although it should be quite easy to extend it to use, e.g., an installed PostgreSQL server as it's back end.
Currently the following modules are supported:
- This module will use finger to find out something more about a person. The list of hosts do be asked is configurable.
This module will look up user name fragments in a list of mail
addresses. To create this list, put the following lines into your
:0hc | lbdb-fetchaddrThis will pipe a copy of every mail message you receive through a small C program lbdb-fetchaddr(1) which grabs that message's "From:" header.
- This module searches for matching entries in your local /etc/passwd file. It evaluates the local machine mail domain in the same way m_finger does. If you set PASSWD_IGNORESYS=true, this module ignores all system accounts and only finds UIDs between 1000 and 29999 (all other UIDs are reserved on a Debian system).
- This module searches for matching entries in the NIS password database using the command ``ypcat passwd''.
- This module searches for matching entries in the NIS+ password database using the command ``niscat passwd.org_dir''.
- This module searches for matching entries in whatever password database is configured using the command ``getent passwd''.
- m_pgp2, m_pgp5, m_gpg:
- These modules scan your PGP 2.*, PGP 5.* or GnuPG public key ring for data. They use the programs pgp, pgpk, or gpg to get the data.
- This module searches your Fido nodelist, stored in $HOME/.lbdb/nodelist created by nodelist2lbdb(1).
- This module uses the program abook, a text based address book application to search for addresses.
- This module uses the program goobook, a program to access your Google contacts via command line client.
- This module uses the program addr-email from the addressbook Tk address database program to search for addresses.
- This module searches the variable $MUTTALIAS_FILES (a space separated list) of files in $MUTT_DIRECTORY that contain Mutt aliases. File names without leading slash will have $MUTT_DIRECTORY (defaults to $HOME/.mutt or $HOME, if $HOME/.mutt does not exist) prepended before the file name. Absolute file names (beginning with /) will be taken direct.
- This module searches pine addressbook files for aliases. To realize this it first inspects the variable $PINERC. If it isn't set, the default "/etc/pine.conf /etc/pine.conf.fixed .pinerc" is used. To suppress inspecting the $PINERC variable, set it to "no". It than takes all address-book and global-address-book entries from these pinerc files and adds the contents of the variable $PINE_ADDRESSBOOKS to the list, which defaults to "/etc/addressbook .addressbook". Then these addressbooks are searched for aliases. All filenames without leading slash are searched in $HOME.
- This module searches the Palm address database using the Palm::PDB and Palm::Address Perl modules from CPAN. It searches in the variable $PALM_ADDRESS_DATABASE or if this isn't set in $HOME/.jpilot/AddressDB.pdb.
- This module searches for addresses in your GnomeCard database files. The variable GNOMECARD_FILES is a whitespace separated list of GnomeCard data files. If this variable isn't defined, the module searches in $HOME/.gnome/GnomeCard for the GnomeCard database or at least falls back to $HOME/.gnome/GnomeCard.gcrd. If a filename does not start with a slash, it is prefixed with $HOME/.
- This module searches for addresses in your (X)Emacs BBDB (big brother database). It doesn't access ~/.bbdb directly (yet) but calls (x)emacs with a special mode to get the information (so don't expect too much performance in this module). You can configure the EMACS variable to tell this module which emacsen to use. Otherwise it will fall back to emacs or xemacs.
- This module queries an LDAP server using the Net::LDAP Perl modules from CPAN. It can be configured using an external resource file (for more details please refer to the mutt_ldap_query(1) manual page).
- This module searches for addresses stored in your $WANDERLUST_ADDRESSES (or by default in $HOME/.addresses) file, an addressbook of WanderLust.
- This module queries the OS X AddressBook. It is only available on OS X systems.
- This module queries the Ximian Evolution address book using the evolution-addressbook-export application.
- This module uses libvformat to search for addresses from the space-separated set of vCard files defined in $VCF_FILES.
For more information have a look at the lbdbq(1) man page, which is included in the package.
Download:You can download the source package or have a look at the Debian package.
Credits:This package was initially written by Thomas Roessler. Most of the really interesting code of this program (namely, the RFC 822 address parser used by lbdb-fetchaddr) was stolen from Michael Elkins' mutt mail user agent. Additional credits go to Brandon Long for putting the query functionality into mutt.
Many thanks to the authors of the several modules and extensions:
- Ross Campbell <firstname.lastname@example.org> (m_abook, m_yppasswd)
- Marc de Courville <email@example.com> (m_ldap, mutt_ldap_query)
- Brendan Cully <firstname.lastname@example.org> (m_osx_addressbook, m_vcf)
- Gabor Fleischer <email@example.com> (m_pine)
- Rick Frankel <firstname.lastname@example.org> (m_gnomecard)
- Guido Guenther <email@example.com> (m_evolution)
- Utz-Uwe Haus <firstname.lastname@example.org> (m_bbdb, m_nispasswd)
- Torsten Jerzembeck <email@example.com> (m_addr_email)
- Adrian Likins <firstname.lastname@example.org> (m_getent)
- Gergely Nagy <email@example.com> (m_wanderlust)
- Dave Pearson <firstname.lastname@example.org> (m_palm, lbdb.el)
- Brian Salter-Duke <email@example.com> (m_muttalias)
- François Charlier <firstname.lastname@example.org> (m_goobook)