Rupert Swarbrick <rswarbr...@gmail.com> writes:

> (setf bbdb-always-add-addresses
>       (lambda ()
>         (if (or (not (boundp 'gnus-newsgroup-name))
>                 (not (string-match "^gmane" gnus-newsgroup-name)))
>             'ask
>           nil)))
>
> It uses an undocumented variable, but maybe there's a better
> way. Anyway, this means that it won't try to add any addresses in a
> gmane group, which probably has the desired effect.

I use

(defun ignore-obfuscated-addresses ()
  ;; gmane sometimes obfuscates email addresses (while keeping names),
  ;; which would cause prompting for adding the `new' e-mail address to
  ;; the existing record for entries in the bbdb
  (if (string-match "public\\.gmane\\.org$" net)
      nil
    ;; launchpad also sometimes associates names with
    ;; ###...@bugs.launchpad.net e-mail addresses.
    (if (string-match "bugs\\.launchpad\\.net$" net)
        nil
      ;; otherwise, ask.
      'ask)))
(setq bbdb-always-add-addresses 'ignore-obfuscated-addresses)

for this -- dispatching on the form of the e-mail address rather than
the group name.  Maybe this is the "better way"?  (I'm no expert on how
things should be done).

Cheers,

Christophe

Attachment: pgp5sGOqxozIk.pgp
Description: PGP signature

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to