Grep only mail headers via STDIN?

2004-03-05 Thread Jens Benecke
Hi, I want to create a script that greps for a specific mail header coming from STDIN. mailgrep and mboxgrep don't work, they need files to work on, but the mail comes via STDIN. So I need to write something like | condredirect [EMAIL PROTECTED] egrep ^X-Spam-Flag: YES BUT where grep would

Re: Grep only mail headers via STDIN?

2004-03-05 Thread Joost De Cock
On Friday 05 March 2004 10:37, Jens Benecke shoved this in my mailbox: I want to create a script that greps for a specific mail header coming from STDIN. mailgrep and mboxgrep don't work, they need files to work on, but the mail comes via STDIN. I'm not saying this can't be done from a shell

Re: Grep only mail headers via STDIN?

2004-03-05 Thread Jens Benecke
Joost De Cock wrote: On Friday 05 March 2004 10:37, Jens Benecke shoved this in my mailbox: I want to create a script that greps for a specific mail header coming from STDIN. mailgrep and mboxgrep don't work, they need files to work on, but the mail comes via STDIN. I'm not saying this

Re: Grep only mail headers via STDIN?

2004-03-05 Thread Ken Irving
On Fri, Mar 05, 2004 at 10:37:01AM +0100, Jens Benecke wrote: Hi, I want to create a script that greps for a specific mail header coming from STDIN. mailgrep and mboxgrep don't work, they need files to work on, but the mail comes via STDIN. So I need to write something like |

Re: Grep only mail headers via STDIN?

2004-03-05 Thread Ken Irving
On Fri, Mar 05, 2004 at 09:55:43AM -0900, Ken Irving wrote: On Fri, Mar 05, 2004 at 10:37:01AM +0100, Jens Benecke wrote: Hi, I want to create a script that greps for a specific mail header coming from STDIN. mailgrep and mboxgrep don't work, they need files to work on, but the mail

Re: Grep only mail headers via STDIN?

2004-03-05 Thread Pigeon
On Fri, Mar 05, 2004 at 10:37:01AM +0100, Jens Benecke wrote: Hi, I want to create a script that greps for a specific mail header coming from STDIN. mailgrep and mboxgrep don't work, they need files to work on, but the mail comes via STDIN. So I need to write something like |