Belette wrote:
> On 3/29/06, Johann Spies < [EMAIL PROTECTED]> wrote:
> > On Wed, Mar 29, 2006 at 01:32:48PM +0200, Belette wrote:
> > > 
> > >    IS there a way to get SA scores using a shell command :
> > > 
> > >    e.g. :
> > >    # spam -score < mail.txt
> > >    # .045
> > > 
> > >    i need this coz i do not want to filter all mails, i just
> > >    need a score, without writing SA header inside it
> > 
> > spamc -R < mail.txt
> 
> yeah thx, but the result is a very long text.
> in fact, i need to use the score as a number.
> ( for an intern use )
> 
> maybe a shell script will be usefull....
> 
> is there any way to get this score in a shell script and use it in
> it... ( as a variable ) 
> 
> i do not want to use spamc -R file.txt | grep .... etc
> maybe RE can match it ?

How about this one:

    $ spamc -c < mail.txt
    24.4/5.0

This gives the score and the required score as output.

Maybe you should mention what you are trying to accomplish.  There may
be another way to do it.

-- 
Bowie

Reply via email to