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

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



    Hi, Anthony E. Greene!

Sometime (on Wednesday, April 14 at 15:08) I've received something...
>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'

That will not work. If you read news via NNTP that never go through
MTA (and procmail too), and it will never go via procmail even for
outgoing email.

Although you may use send-hook (for outgoing articles) for that.

    Andriy.