Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Advanced BBDB use
@ 2007-01-14 16:38 Springfield
  2007-01-15 21:55 ` Reiner Steib
  0 siblings, 1 reply; 3+ messages in thread
From: Springfield @ 2007-01-14 16:38 UTC (permalink / raw)


Hi all,

I have an extra field within my bbdb database. Is there any easy way of
putting together a mail with only the recipients whose records match a
condition on my new field? Looking around the docs hasn't upturned
anything inspiring.

Cheers,
Spring
-- 
Never think that war, no matter how necessary, nor how justified, is
not a crime.

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

* Re: Advanced BBDB use
  2007-01-14 16:38 Advanced BBDB use Springfield
@ 2007-01-15 21:55 ` Reiner Steib
  2007-01-15 22:25   ` Springfield
  0 siblings, 1 reply; 3+ messages in thread
From: Reiner Steib @ 2007-01-15 21:55 UTC (permalink / raw)


On Sun, Jan 14 2007, Springfield wrote:

> I have an extra field within my bbdb database. Is there any easy way of
> putting together a mail with only the recipients whose records match a
> condition on my new field? Looking around the docs hasn't upturned
> anything inspiring.

I think you should use `mail-alias':

,----[ (info "(bbdb)Mail Sending Interfaces") ]
|    If you want a mail alias to be defined for a person, simply add a
| `mail-alias' field to their record.  You may have multiple aliases for
| the same person; simply separate them with commas.
|
| [...]
|
|    To actually define the aliases which are stored in the BBDB, call the
| function `bbdb-define-all-aliases' from your `mail-setup-hook' (or
| `message-setup-hook' if you use Message mode coming with Gnus).  This
| will search the database, and call `define-mail-alias' to define each
| of the resulting aliases.
`----

I use it as follows:

;; Define mail aliases for some of the records in the database.
;; Every record which has a `mail-alias' field will have a mail alias
;; defined for it which is the contents of that field.  If there are
;; multiple comma-separated words in the `mail-alias' field, then all
;; of those words will be defined as aliases for that person.
(eval-after-load "message"
  '(add-hook 'message-setup-hook 'bbdb-define-all-aliases))

BTW:

| Gnus/5.090024 (Oort Gnus v0.24) Emacs/22.0.92 (gnu/linux)

Huch?  Emacs 22 includes a more recent an less buggy version of Gnus
compared to Oort Gnus 0.24 (= Gnus 5.10.1): Gnus 5.11 (which
corresponds to Gnus 5.10.8 + several bug fixes).

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

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

* Re: Advanced BBDB use
  2007-01-15 21:55 ` Reiner Steib
@ 2007-01-15 22:25   ` Springfield
  0 siblings, 0 replies; 3+ messages in thread
From: Springfield @ 2007-01-15 22:25 UTC (permalink / raw)


Reiner,

Reiner Steib <reinersteib+gmane@imap.cc> writes:

> On Sun, Jan 14 2007, Springfield wrote:
>
>> I have an extra field within my bbdb database. Is there any easy way of
>> putting together a mail with only the recipients whose records match a
>> condition on my new field? Looking around the docs hasn't upturned
>> anything inspiring.
>
> I think you should use `mail-alias':

That's just what I was looking for, thanks.

> BTW:
>
> | Gnus/5.090024 (Oort Gnus v0.24) Emacs/22.0.92 (gnu/linux)

Fixed, thanks for pointing it out.

Cheers,
Spring
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

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

end of thread, other threads:[~2007-01-15 22:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-14 16:38 Advanced BBDB use Springfield
2007-01-15 21:55 ` Reiner Steib
2007-01-15 22:25   ` Springfield

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