[prev in list] [next in list] [prev in thread] [next in thread] 

List:       razor-users
Subject:    Re: [Razor-users] How do I know that razor-report works at all?
From:       Tom Allison <tallison () tacocat ! net>
Date:       2004-03-13 3:35:43
Message-ID: 4052818F.5010306 () tacocat ! net
[Download RAW message or body]

Jesper K. Pedersen wrote:

> Let me elaborate here.
> Realizing the error of mbox files, I've set up this alias:
> alias markAsSpam='cat ~/Mail/.Current.directory/Spam | formail -s spamassassin 
> --report'
> (please do not mind the line break ;-)
> 
> The question deep in my heart is still. Does this report anything, or simply 
> fail silently?
> 

Why don't you try running razor-report with '-d'
I get lots of messages back when I run something.
The same is true with razor-check.  Try it.

I have MailDir formail, so you would have to modify this, and use a 
cronjob to run the following script periodically:

     razor-report -a || exit 1
     for F in `ls $RAZOR`; do
         razor-report -f < $RAZOR$F;
         rm $RAZOR$F;
     done

note:
$RAZOR is my maildir directory
$F is the mail message (filename).

The first line, razor-report -a simply checks to see that I can 
authenticate against the server to make sure I can get the connection. 
Once this is passed, I run the emails through razor-report.
If I was really worried about the return code, I could modify this to read:
razor-report -f < $RAZOR$F && rm $RAZOR$F



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Razor-users mailing list
Razor-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/razor-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic