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

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

Re: How to create/add-to-existing headers in a posting style?


From: Tassilo Horn
Subject: Re: How to create/add-to-existing headers in a posting style?
Date: Wed, 18 Jul 2012 12:54:32 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux)

asjo@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 "reallyreallyimportant@example.org"
                             (buffer-substring-no-properties
                              (line-beginning-position)
                              (line-end-position))))
      (when (not (= (- (point)
                       (line-beginning-position))
                    4))
        (insert ", "))
      (insert "reallyreallyimportant@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




reply via email to

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