info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: send mail to several recipients with bbdb


From: Fabian Braennstroem
Subject: Re: send mail to several recipients with bbdb
Date: Wed, 21 Apr 2004 08:24:52 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Jochen Küpper <address@hidden> writes:

> On Tue, 20 Apr 2004 08:43:14 +0200 Fabian Braennstroem wrote:
>
> Fabian> What I meant is, that I am able to write the short alias-name
> Fabian> into the "To:"-Field, but when I want to complete is with
> Fabian> "Tab" it doesn't work.
>
> What is tab bound to? Does it work to say M-x bbdb-complete-name
> behind the alias? Does it help to run M-x bbdb-define-all-aliases in
> the message buffer before?

It just works to complete the names with bbdb-complete-name.
Here is the code I use:

(defun my-mail-tab ()
  "Call bbdb-complete-name, if cursor in  Header fields
of the message, otherwise normal? \"TAB\" behaviour."
  (interactive)
  (let ((my-complete nil)
(case-fold-search t))
    (save-excursion
      (if (search-forward (concat "\n" mail-header-separator
  "\n") nil t)
  (setq my-complete t)))
    (if my-complete
(bbdb-complete-name)
      (indent-relative))))
;;;
(add-hook 'mail-setup-hook
  '(lambda ()
     (define-key mail-mode-map "\t" 'my-mail-tab)))

I didn't use 'bbdb-define-all-aliases' before; I just can display the
description of the function, so I inserted the alias by hand to the
addresses. Maybe, that's the reason!?

> Fabian> Afterwards I tried to write just the alias to the "To:"-field
> Fabian> in send it with this alias, but then Gnus complains about a
> Fabian> missing domain.
>
> Yep, this cannot work.

It was just a try.

Greetings!
-- 
Fabian Braennstroem
Berlin / Duesseldorf


reply via email to

[Prev in Thread] Current Thread [Next in Thread]