Re: Unwanted headers (Was: A subtle issue with ifile-gnus)

Clemens Fischer <[email protected]>
Newsgroups gmane.mail.ifile.general
Message-ID <[email protected]>
Jens Peter Secher <[email protected]> writes:

> ,----[ mailclassify ]
> | #!/bin/sh
> | CATEGORY=`\
> | KEYIGNHEADS='Envelope-to:Delivery-date:Date:Message-Id:\
> | Resent-Message-ID:Resent-Date:Lines:Xref:List-Post:List-Help:\
> | List-Subscribe:List-Unsubscribe:' \
> | MAILCAPS=/usr/share/doc/ifile/examples/metamail/mailcap \
> | metamail -d 2>&1 | \
> | ifile -v0 -Q -w $@ | \
> | head -1 | \
> | cut -f 1 -d " "`
> | echo $CATEGORY
> `----

thanks for sharing!  as to the "head | cut" pipe, consult the manual
of versions 1.0.9+ (i think) for "-c|--concise".  the most current
stable version of ifile is 1.0.11, which already has it.

-- 
clemens
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.