Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Searching BBDB by mail-alias
@ 2007-01-04 14:09 Sebastian Tennant
  0 siblings, 0 replies; 5+ messages in thread
From: Sebastian Tennant @ 2007-01-04 14:09 UTC (permalink / raw)


Hi all,

I'm using Gnus' message-mode and BBDB's mail-alias field to provide
mailing lists functionality.

Having created a mail-alias ('family' for instance) and assigned it to
a number of different entries, does anyone know of a way to tell BBDB
to list just those entries with the 'family' mail-alias?

'b' searches various different database fields but not mail-alias.

Happy New Year by the way.

Sebastian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Searching BBDB by mail-alias
  2007-01-04 16:20 ` Charles philip Chan
  2007-01-04 16:47   ` Thomas Gerds
@ 2007-01-05  9:00   ` Sebastian Tennant
  1 sibling, 0 replies; 5+ messages in thread
From: Sebastian Tennant @ 2007-01-05  9:00 UTC (permalink / raw)


Quoth "Charles philip Chan" <cpchan@sympatico.ca>:
> 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.

I fear I may have deleted your email in a careless spam purge.  Sure
enough, a Google search for 'bbdb-query' does not throw up any clearly
identifiable leads so it'd be great if you could send me it again.

Thanks, and sorry for the hassle,

Sebastian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Searching BBDB by mail-alias
  2007-01-04 16:47   ` Thomas Gerds
@ 2007-01-05  8:52     ` Sebastian Tennant
  0 siblings, 0 replies; 5+ messages in thread
From: Sebastian Tennant @ 2007-01-05  8:52 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Searching BBDB by mail-alias
  2007-01-04 16:20 ` Charles philip Chan
@ 2007-01-04 16:47   ` Thomas Gerds
  2007-01-05  8:52     ` Sebastian Tennant
  2007-01-05  9:00   ` Sebastian Tennant
  1 sibling, 1 reply; 5+ messages in thread
From: Thomas Gerds @ 2007-01-04 16:47 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Searching BBDB by mail-alias
       [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  9:00   ` Sebastian Tennant
  0 siblings, 2 replies; 5+ messages in thread
From: Charles philip Chan @ 2007-01-04 16:20 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-01-05  9:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-04 14:09 Searching BBDB by mail-alias Sebastian Tennant
     [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
2007-01-05  9:00   ` Sebastian Tennant

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