Re: Antwort: Re: [Exim] Spamassassin Survey

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Greg Ward
日付:  
To: 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