On Sun Jul 31 2011 Johnny wrote:
> I have started using aliases in bbdb and wonder if there is any setup to
> autocomplete on defined aliases in the headers? Say, I have an alias
> named "listofmembers" and want to mail them. I add this mail-alias field
> to all relevant contacts, then in the "To" header type the full alias
> "listofmembers" followed by TAB, this fills in the "To" header with the
> group members email as expected. However, I would like to enable TAB
> completion on alias names, e.g. if I type "lis" and TAB this should
> ideally fill in the rest. Is this possible to achieve?

This has (almost) nothing to do with BBDB. The mailabbrev package is
doing this (both when you define aliases via a .mailrc file or via
BBDB).

You can use mail-abbrev-complete-alias from that package (I think,
usually bound to M-Tab). If you also want to use bbdb-complete-mail
things get a bit more complicated, as you need to specify some order
for completion (whether mail-abbrev-complete-alias or
bbdb-complete-mail should try first). Try something like

(defun my-bbdb-complete-mail ()
  (interactive)
  (or (mail-abbrev-complete-alias)
      (bbdb-complete-mail)))

> Second question, is there a clever way to list all mail aliases in BBDB,
> and subsequently list all members of o select mail alias?

How about bbdb-search-notes (bound to S N)?  If you want to list just
the aliases, but not the records using them, you might have to write
your own code.

Roland

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to