<<< Date Index >>>     <<< Thread Index >>>

Re: two address books



On Tue, Jun 02, 2009 at 08:36:49AM +0200, Robert Svoboda wrote:
I can bind macros to modify query_command to once use ldap,
then abook. The best would be to have both address books queried
simultaneously and get result where it'd be clear which
entries are from which address book. This is work for wrapper.

I use lbdb (little brother's database), which provides hooks for abook, ldap, and many more. If I do a query for "bill", I'll get something like:

1 Accounts & Billing Departme...   billing@xxxxxxxxxxx         2009-05-01 15:14
2 Bill xxxx                        xxxxxxxxxxxxx@xxxxxxxxxxx   (VCF)
3 xxxxxx xxxxbill                  xxxxxxxxxxxx@xxxxxxxxxxx    (Palm)

That shows that I have one entry generated from an email I sent to that address on May 1, one entry from a VCF file on disk, and another from a Palm contact database on disk (synced from my phone). All of those are configurable to one extent or another.

Mutt configuration is simple:

set query_command="lbdbq '%s'"

I don't personally use abook or ldap, so I'm not sure my ~/.lbdbrc would be helpful, but I'd be willing to share if you'd like.

Ed

Attachment: signature.txt
Description: Digital signature