Mats Lidell <[EMAIL PROTECTED]> writes:
> In gnus you must find the article-buffer so that you are looking at
> the right spot. This is my go at it.
I was looking for the same thing, and tried the following:
(add-hook 'bbdb-canonicalize-net-hook 'my-handle-gmane-address)
(defun my-handle-gmane-address (net)
(let ((buf (get-buffer gnus-article-buffer)))
(if buf
(save-excursion
(goto-char (point-min))
(if (and (string-match "@public.gmane.org" net)
(re-search-forward (format "[^:,]*<%s>" net) (point-max) t))
(let ((ad (mail-extract-address-components (match-string 0)))
realnet)
(message "Found `%S' in headers! Doing realname search!" ad)
(and (car ad)
(setq realnet (bbdb-search-simple (car ad) nil))
(setq realnet (car (bbdb-record-net realnet)))
(setq net realnet))))
net))
net))
But I just get this error:
bbdb-canonicalize-address: Invalid function: (my-handle-gmane-address)
I was hoping that someone could help me get this to work. A backtrace
is attached, in case it would be helpful.
Debugger entered--Lisp error: (invalid-function (my-handle-gmane-address))
(my-handle-gmane-address)("[EMAIL PROTECTED]")
bbdb-canonicalize-address("[EMAIL PROTECTED]")
bbdb-annotate-message-sender(("Joe Corneli" "[EMAIL PROTECTED]") t nil
bbdb-prompt-for-create)
byte-code("Ã= à Ã\n Ã$CÂÂÂ