[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: |
Tue, 17 Jul 2012 08:38:19 +0200 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) |
asjo@koldfront.dk (Adam Sjøgren) writes:
>> Another approach was to use gnus-parameters to add your
>> append-hugo-in-cc function to message-header-hook (or
>> message-header-setup-hook?) locally for this group.
>
> How do I add it locally? Ah, add-hook has a LOCAL parameter. Hm. Let's
> see if I can figure this out...
I think, there's no way to do it that way. An existing variable in
group parameters will be automagically be made local in the
corresponding summary buffer. So something like
("my\.special\.group"
(message-setup-hook
(append message-setup-hook
(list (lambda () ...)))))
Probably, you can just use cons instead of append. But I wan't sure if
your function maybe needs something that's setup by some other function
in message-setup-hook that needs to run earlier therefore.
> Which kind of works; the only problem with this is, that it leaves an
> empty header "X-Add-To-Cc" in the buffer, which is ugly - but I
> couldn't figure out how to have my function run without adding a
> header...
The above should omit this header creation.
Bye,
Tassilo
- How to create/add-to-existing headers in a posting style?, Adam Sjøgren, 2012/07/14
- Re: How to create/add-to-existing headers in a posting style?, Tassilo Horn, 2012/07/15
- Re: How to create/add-to-existing headers in a posting style?, Adam Sjøgren, 2012/07/15
- Re: How to create/add-to-existing headers in a posting style?,
Tassilo Horn <=
- Re: How to create/add-to-existing headers in a posting style?, Tassilo Horn, 2012/07/17
- Re: How to create/add-to-existing headers in a posting style?, Adam Sjøgren, 2012/07/17
- Re: How to create/add-to-existing headers in a posting style?, Tassilo Horn, 2012/07/18
- Re: How to create/add-to-existing headers in a posting style?, Adam Sjøgren, 2012/07/18
- Re: How to create/add-to-existing headers in a posting style?, Tassilo Horn, 2012/07/19
- Re: How to create/add-to-existing headers in a posting style?, Adam Sjøgren, 2012/07/19