script question

From: Dan Pixley (danpixley_at_cox.REMOVEME.net)
Date: 10/17/03


Date: Thu, 16 Oct 2003 17:42:08 -0700

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, and am wondering how I properly pipe my
email messages in Evolution to this script.

Thanks,
Dan



Relevant Pages

  • Re: script question
    ... > filtering for the Filters in Evolution. ... > 'Pipe Message to Shell Command'. ... > email messages in Evolution to this script. ...
    (linux.redhat)
  • Re: script question
    ... Dan Pixley wrote: ... I am trying to come up with a script that will do some email ... > filtering for the Filters in Evolution. ...
    (linux.redhat)
  • Re: script question
    ... > Dan Pixley wrote: ... I am trying to come up with a script that will do some ... >> email filtering for the Filters in Evolution. ... Yep, got that part, but its still not being procesed by the Evolution ...
    (linux.redhat)
  • Sylpheed-claws: importing Evolution address book ??
    ... I am trying to migrate from Evolution to Sylpheed-claws. ... Now the final touch consists of importing my Evolution address book! ... I did that, but then when I run the script, it fails to convert it. ... got exception, cleaning up the mess... ...
    (Ubuntu)
  • Various problems in Ternd Micro AppletTrap Script filtering
    ... Various problems in Ternd Micro AppletTrap Script filtering ... malicious JavaScript and unsecured ActiveX controls at the gateway. ...
    (Bugtraq)