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

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



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'


Tony
-- 
Anthony E. Greene <mailto:Anthony%20E.%20Greene%20%3Cagreene@xxxxxxxxx%3E>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D
AOL/Yahoo Messenger: TonyG05 HomePage: <http://www.pobox.com/~agreene/>
Linux. The choice of a GNU generation <http://www.linux.org/>