I'm not sure about your searching problem, but to turn on th expansion
you need to call the bbdb-define-all-aliases function.  From the bbdb
manual:

    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.

Regards,
Chris Dean

Paul Lussier <[EMAIL PROTECTED]> writes:
> Hi all,
>
> I seem to be having problems getting mail-alias expansion to work
> correctly in gnus.  Additionally, even within the *BBDB* buffer, I
> can't seem to successfully search on the contents of the mail-alias
> field.
>
> For example, if I create a mail-alias with 'a', and type in foo, then
> type in 'b RET foo' I get "No records matching 'foo'".  Additionally,
> expansion within the To, Cc, or Bcc fields for a mail-alias doesn't
> seem to work with either M-TAB or TAB...
>
> I'm currently using:
>
>  - Gnus v5.11
>  - BBDB version 2.35 ($Date: 2004/05/28 14:47:14 $)
>  - GNU Emacs 22.0.50.2
>    (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2005-03-29
>
> Here's my bbdb config as well:
>
>    (require 'bbdb-autoloads)
>    (require 'bbdb)
>    (require 'bbdb-com)
>
>    (bbdb-initialize 'gnus 'message)
>    (setq bbdb-use-pop-up nil)
>    (setq bbdb-complete-name-allow-cycling t)
>    (setq bbdb-canonicalize-redundant-nets-p t)
>    (setq bbdb-offer-save 1)
>    (setq bbdb-display-layout 'multi-line)
>    (setq bbdb-pop-up-target-lines 1)
>    (setq bbdb-north-american-phone-numbers-p t)
>    (add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus)
>    (bbdb-insinuate-message)
>    (put 'subjects 'field-separator "\n")
>    (setq bbdb-auto-notes-ignore '((("Organization" . "^Gatewayed 
> from\\\\|^Source only")
>                                    ("Path" . "main\\.gmane\\.org"))))
>    (setq bbdb-auto-notes-ignore-all nil)
>    (setq bbdb-check-zip-codes-p nil)
>    (setq bbdb-default-country "U.S.A.")
>    (setq bbdb-ignore-most-messages-alist (quote (("To" . "pll") ("Cc" . 
> "pll") ("To" "emacs-wiki-discuss"))))
>    (add-hook 'bbdb-notice-hook 'bbdb-auto-notes-hook)
>    (setq bbdb-quiet-about-name-mismatches 0)
>    (setq bbdb-expand-mail-aliases t)
>    (setq bbdb-use-alternate-names t)
>    (setq bbdb/mail-auto-create-p 'bbdb-ignore-most-messages)
>    (setq bbdb/news-auto-create-p nil)
>    (put 'notes 'field-separator "; ")
>
> Any help would be most welcome.
>
> Thanks.
> -- 
>
> Seeya,
> Paul
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. 
> Download it for free - -and be entered to win a 42" plasma tv or your very
> own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> bbdb-info@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bbdb-info
> BBDB Home Page: http://bbdb.sourceforge.net/


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to