Hello All !

I installed some time ago SpamAssassin on my computer ( a Macintosh running under Mac OS X 10.2.6) and it works really fine. I didn't have to tweak it too much to set it to my liking, and even without knowing any perl, the scripts were easy to adapt to my setup.

That's why my question might be an easy one: I would like spamassassin to ignore mail that was already checked (based on the X-Spam header for example). I went through the different cf files without finding anything.

Is there a configuration option that could do the trick ? Or is it something that should be done by my perl "popread" script that downloads my mail and sends it to sa for checking ? My script uses Mail::Audit like this:

    my $item = Mail::Audit->new(data => [EMAIL PROTECTED], noexit => 1, nomime => 1);
    my $spam = Mail::SpamAssassin->new();
    my $status = $spam->check($item);
    $status->rewrite_mail();
    $item->accept("/var/mail/phlampe");

What should I add in there to check that header ? I guess I should call somehow a function from Mail::Audit to retrieve the header and then call sa only if it doesn't exist. Thanks for your help :-)

  See you later in Netland,
Paul-Henri



--

    ... ooo OOO Black holes are where God divided by zero. OOO ooo ...
  ---<<<   Minas Ithil, Tower of the Moon, Role-Playing Library   >>>---



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to