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: Sun, 15 Jul 2012 21:40:44 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux)

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


>> So it seems you can have an posting style entry like that
>
>>   (Cc (save-excursion
>>         (message-goto-cc)
>>         (concat "theboss@company.invalid"
>>                 (buffer-substring-no-properties
>>                   (point) (line-end-position)))
>
>> Totally untested, of course.
>
> It fails with:
>
>   message-position-on-field: Search failed: "^--text follows this line--$"
>
> in an empty buffer, so I guess it runs at a different time than
> expected?

Yes, seems so.  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.

Bye,
Tassilo




reply via email to

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