From: Sebastian Tennant <sebyte@smolny.plus.com>
Subject: Re: Searching BBDB by mail-alias
Date: Fri, 05 Jan 2007 10:52:56 +0200 [thread overview]
Message-ID: <877iw1n9cn.fsf@dellboy.lap.top> (raw)
In-Reply-To: <w4z3b6qlowz.fsf@rembrandt.fdm.uni-freiburg.de>
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
next prev parent reply other threads:[~2007-01-05 8:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2742.1167920116.2155.info-gnus-english@gnu.org>
2007-01-04 16:20 ` Charles philip Chan
2007-01-04 16:47 ` Thomas Gerds
2007-01-05 8:52 ` Sebastian Tennant [this message]
2007-01-05 9:00 ` Sebastian Tennant
2007-01-04 14:09 Sebastian Tennant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877iw1n9cn.fsf@dellboy.lap.top \
--to=sebyte@smolny.plus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).