[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Searching BBDB by mail-alias
From: |
Sebastian Tennant |
Subject: |
Re: Searching BBDB by mail-alias |
Date: |
Fri, 05 Jan 2007 10:52:56 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux) |
Quoth Thomas Gerds <gerds@fdm.uni-freiburg.de>:
> hi,
>
> here is some code that allows you to search all fields for which there
> is no special search utility. for example,
>
> M-x bbdb-field RET
> mail-alias RET
> . RET
>
> lists all records that have a mail-alias.
>
> (defun bbdb-field (field string elidep)
> "Display all entries in the BBDB matching the regexp STRING in the field
> field."
> (interactive "xField where to search : \nsRegular Expression for Search:
> \nP")
> (let* ((target (cons field string))
> (bbdb-elided-display (bbdb-grovel-elide-arg elidep))
> (recs (bbdb-search (bbdb-records) nil nil nil target)))
> (bbdb-display-records recs)
> recs))
Many thanks Thomas. Your code works a treat.
Sebastian