Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Thomas Gerds <gerds@fdm.uni-freiburg.de>
Subject: Re: Searching BBDB by mail-alias
Date: Thu, 04 Jan 2007 17:47:24 +0100	[thread overview]
Message-ID: <w4z3b6qlowz.fsf@rembrandt.fdm.uni-freiburg.de> (raw)
In-Reply-To: <87hcv6n4q7.fsf@MagnumOpus.khem>

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))

best,
tomy

"Charles philip Chan" <cpchan@sympatico.ca> writes:

> On  4 Jan 2007, sebyte@smolny.plus.com wrote:
>
>> does anyone know of a way to tell BBDB to list just those entries
> with
>> the 'family' mail-alias?
>
> Yes. use bbdb-query which I can't seem find on the Internet
> anymore. Since my Usenet nost does not allow attachments, I will send
> you a copy privately.
>
> Charles
>
> -- 
> # Basic IBM dingbats, some of which will never have a purpose clear
> # to mankind
>         linux-2.4.0/drivers/char/cp437.uni

-- 
very nice signature

  reply	other threads:[~2007-01-04 16:47 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 [this message]
2007-01-05  8:52     ` Sebastian Tennant
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=w4z3b6qlowz.fsf@rembrandt.fdm.uni-freiburg.de \
    --to=gerds@fdm.uni-freiburg.de \
    /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).