From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 35DD0BC69 for ; Fri, 13 Apr 2007 08:47:10 +0200 (CEST) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l3D6l9it010713 for ; Fri, 13 Apr 2007 08:47:10 +0200 Received: from kerneis.info (kerneis.info [82.224.215.18]) by smtp4-g19.free.fr (Postfix) with ESMTP id B6A796A93A; Fri, 13 Apr 2007 08:47:09 +0200 (CEST) Received: from localhost ([127.0.0.1] helo=kerneis.info ident=gabriel) by kerneis.info with esmtp (Exim 4.63) (envelope-from ) id 1HcFYq-0000rW-9I; Fri, 13 Apr 2007 08:47:08 +0200 Date: Fri, 13 Apr 2007 08:47:00 +0200 From: Gabriel Kerneis To: caml-list@yquem.inria.fr Cc: Ian Zimmerman Subject: Re: [Caml-list] [OT?] spamoracle concurrency Message-ID: <20070413084700.7f1b5d8c@kerneis.info> In-Reply-To: <87ps68u7ub.fsf@unicorn.ahiker.homeip.net> References: <87ps68u7ub.fsf@unicorn.ahiker.homeip.net> X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_YkwRcdBxY.CMEVl0oJ7T0Ax; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Miltered: at concorde with ID 461F276D.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; itz:01 slap:01 1.4:98 caml-list:01 zimmerman:01 concurrency:02 ian:03 gnu:03 renamed:04 depends:04 scheme:05 pgp:05 pgp:05 problem:05 dump:05 --Sig_YkwRcdBxY.CMEVl0oJ7T0Ax Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Le 13 Apr 2007 02:06:04 -0400, Ian Zimmerman a =E9crit : >=20 > I couldn't find a forum specifically for spamoracle :-) >=20 > The question is: does spamoracle do any kind of locking on the > database? And what kind? Clearly, if I pipe my mails through > "spamoracle mark" in my procmail (or maildrop, etc.) configuration, > spamoracle may run and access the database at completely > unpredictable times. Is it safe to do "spamoracle add" while this is > enabled? Or do I have to slap a locking scheme on top myself? After a quick glance at the source code of spamoracle 1.4 (that I used a few years ago for a school project), I would answer "no" : database is read from file to memory, and if you do "spamoracle add", it will update the database (in memory), then dump it back to a (temporary) file which will eventually being renamed and erase your previous database. As far as I can see, there is no locking of any kind. But if you process your mails one by one, there shouldn't be any problem either ; it depends on your MDA.=20 Regards, --=20 Gabriel Kerneis --Sig_YkwRcdBxY.CMEVl0oJ7T0Ax Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGHydr6a2JmXQu5bYRAssBAKC6ITgP9K1BDluXAMp9EMpLF3bL1ACdFJpc FCuT4M62bxaD+aKgC64K4vs= =D2vp -----END PGP SIGNATURE----- --Sig_YkwRcdBxY.CMEVl0oJ7T0Ax--