Re: Unwanted headers
Jens Peter Secher <[email protected]>
| Newsgroups | gmane.mail.ifile.general |
|---|---|
| Message-ID | <[email protected]> |
Clemens Fischer <[email protected]> writes: > 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. No, because --concise implies --strip-header, which is not what I want. (IMHO --concise should not imply --strip-header because it is a mix of grouping unrelated input and output behaviours together.) -- Jens Peter Secher _jpsecher get2net dk DD6A 05B0 174E BFB2 D4D9 B52E 0EE5 978A FE63 E8A1_