<<< Date Index >>>     <<< Thread Index >>>

Re: Inserting custom line into header depending on newsgroup name pattern.



Anthony E. Greene wrote:
On 14-Apr-2004/10:06 +0300, Igor Karpov <jc@xxxxxxxxxxxxxx> wrote:

Is it possible to insert a custom line into the header depending on
newsgroup name pattern?


Use procmail and formail:

:0 f
* ^Newsgroup: alt.whatever
| formail -a 'X-MyHeader: some text here'

Well, now I see I asked wrong question :)

I need to insert custom line when I'm _posting_ to newsgroup, which name matches some pattern and not to insert if it doesn't...