Re: script question
From: Paul Lutus (nospam_at_nosite.zzz)
Date: 10/17/03
- Next message: Helge Hinkelmann: "Re: Ximian Evolution"
- Previous message: Paul Lutus: "Re: Redhat Future?"
- In reply to: Dan Pixley: "script question"
- Next in thread: cmsix: "Re: script question"
- Reply: cmsix: "Re: script question"
- Reply: Dan Pixley: "Re: script question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 17 Oct 2003 00:36:22 -0700
Dan Pixley wrote:
> Hello all. I am trying to come up with a script that will do some email
> filtering for the Filters in Evolution (1.4). I'm using the option
> 'Pipe Message to Shell Command'. Here's my script:
>
> #!/bin/bash
>
> file=$1
> if grep '(\[200\.*\.*\.*' $file >& /dev/null
> then
> exit 0
> else
> exit 1
> fi
> ------------------------------------------------------
> This doesn't work quite right,
Really? Well, since you don't say what it is supposed to do, or what it
doesn't do, how can we help you?
> and am wondering how I properly pipe my
> email messages in Evolution to this script.
Start by saying what is required, and how your script fails in meeting this
requirement.
One immediately sees this in your (apparent) regex argument:
\.*\.*\.*
As constructed, it means zero or more periods, an argument repeated three
times. It's redundant. But is it a regex argument? If it is, use "egrep".
Conclusion: State the problem to be solved, not your solution.
-- Paul Lutus http://www.arachnoid.com
- Next message: Helge Hinkelmann: "Re: Ximian Evolution"
- Previous message: Paul Lutus: "Re: Redhat Future?"
- In reply to: Dan Pixley: "script question"
- Next in thread: cmsix: "Re: script question"
- Reply: cmsix: "Re: script question"
- Reply: Dan Pixley: "Re: script question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|