a...@koldfront.dk (Adam Sjøgren) writes:

>> An existing variable in group parameters will be automagically be
>> made local in the corresponding summary buffer.
>
> Hm, I can't make it work, though; I get this error in *Messages*:
>
>   let: Symbol's value as variable is void: bbdb-insinuate-message

Hm, do you have a backtrace?

> The value of message-setup-hook is (asjo-add-now-playing-header
> bbdb-insinuate-message), which works fine.
>
> Maybe I messed up the group parameters somehow...

Hm, basically it looks good to me.  But it might be a good idea to make
that huge lamba an own function.

--8<---------------cut here---------------start------------->8---
(defun my-gnus-add-special-cc ()
  (save-excursion
    (message-goto-cc)
    (when (not (string-match "reallyreallyimport...@example.org"
                             (buffer-substring-no-properties
                              (line-beginning-position)
                              (line-end-position))))
      (when (not (= (- (point)
                       (line-beginning-position))
                    4))
        (insert ", "))
      (insert "reallyreallyimport...@example.org"))))

(setq gnus-parameters
      '(("that\.special\.group"
         (message-setup-hook
           (append message-setup-hook
                   '(my-gnus-add-special-cc))))))
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to