Re: Antwort: Re: [Exim] Spamassassin Survey

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Greg Ward
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: Antwort: Re: [Exim] Spamassassin Survey
On 11 April 2002, Wolfgang.Fuertbauer@??? said:
> here is an working (quick and dirty) perl-script:

[...code omitted...]

Umm, what about locking? If two spams happen to arrive at the same
time, your spam folder will be corrupted.

> $spambox = '/var/spool/spam';
> # I want all (and I want it now)
> undef $/;
> $| = 1;
> $inmail = <STDIN>;
> # send the mail to spamc
> $spamcmail = `echo "$inmail" | spamc -u exim -s 5000000`;


This use of backticks is also horribly inefficient and looks *very*
prone to quoting bugs.

My Python script -- renamed routespam since last night -- does it right.
Will be online at satools.sourceforge.net some time today.

        Greg
--
Greg Ward - software developer                gward@???
MEMS Exchange                            http://www.mems-exchange.org