From m1keharris at hotmail.com Wed Apr 5 19:58:02 2006 From: m1keharris at hotmail.com (Michael Harris) Date: Wed, 05 Apr 2006 18:58:02 +0100 Subject: [spambayes-dev] University Project Message-ID: I am trying to right a program for my 3rd year project at university which will attempt to optimise the best configuration of spambayes for a user given his spam/ham corpus. I was just wandering if anyone could tell me firstly how i can train spambayes through command line on mbox's. And secondly i need a way of querying spambayes on the probability which it would assign to an individual email of 'spaminess' given the training it has received. Many Thanks Michael Harris _________________________________________________________________ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://join.msn.com/messenger/overview From popiel at wolfskeep.com Wed Apr 5 22:03:15 2006 From: popiel at wolfskeep.com (T. Alexander Popiel) Date: Wed, 05 Apr 2006 13:03:15 -0700 Subject: [spambayes-dev] University Project In-Reply-To: References: Message-ID: <20060405200315.A57B12DDBB@cashew.wolfskeep.com> In message: "Michael Harris" writes: >I am trying to right a program for my 3rd year project at university which >will attempt to optimise the best configuration of spambayes for a user >given his spam/ham corpus. > >I was just wandering if anyone could tell me firstly how i can train >spambayes through command line on mbox's. And secondly i need a way of >querying spambayes on the probability which it would assign to an individual >email of 'spaminess' given the training it has received. For command-line operations of spambayes, look at sb_filter; it provides the ability to train, untrain, and evaluate messages. However, for large-scale evaluation of training strategies, I suggest reading through TESTING.txt and testtools/{timcv.py,table.py,*.txt}. Doing it all through the command line will be much, much slower than using one of the test scripts that embeds a classifier and iterates over all the messages for training and testing (without paying the startup costs for each operation). - Alex From tony.meyer at gmail.com Fri Apr 7 04:43:38 2006 From: tony.meyer at gmail.com (Tony Meyer) Date: Fri, 7 Apr 2006 14:43:38 +1200 Subject: [spambayes-dev] Switch to Subversion? Message-ID: <6c63de570604061943m1d6899bcv7018a635d904c984@mail.gmail.com> Hey everyone :) Now that sourceforge offers subversion as well as CVS, what does everyone think about switching spambayes over to svn? There's a slightly out-of-date copy of what's in CVS at: https://svn.sourceforge.net/svnroot/spambayes/trunk/spambayes if anyone wants to play around with it (but if we do switch over then a fresh migration would be good, so please don't check any permanent changes into svn at this point). As I understand it, the procedure for swapping over is pretty painless: we just do another migration (simple web form), and then one of the admins ticks the SVN box and unticks the CVS box. I figure that those who are Python developers will be fairly familiar with SVN by now - is everyone else as well? =Tony.Meyer From skip at pobox.com Fri Apr 7 04:50:00 2006 From: skip at pobox.com (skip at pobox.com) Date: Thu, 6 Apr 2006 21:50:00 -0500 Subject: [spambayes-dev] Switch to Subversion? In-Reply-To: <6c63de570604061943m1d6899bcv7018a635d904c984@mail.gmail.com> References: <6c63de570604061943m1d6899bcv7018a635d904c984@mail.gmail.com> Message-ID: <17461.54104.458273.361496@montanaro.dyndns.org> Tony> Now that sourceforge offers subversion as well as CVS, what does Tony> everyone think about switching spambayes over to svn? I tried using it for the first time today to download matplotlib at work. It failed because our svn doesn't have SSL support builtin. I then tried from my Mac (which does have svn+SSL). I got an error I'd never seen before (don't recall at the moment) and which John Hunter (matplotlib's author) hadn't seen before either. Based on that sample size of one, I'd say -1 to using svn at SF. Skip From tony.meyer at gmail.com Fri Apr 7 05:37:12 2006 From: tony.meyer at gmail.com (Tony Meyer) Date: Fri, 7 Apr 2006 15:37:12 +1200 Subject: [spambayes-dev] Switch to Subversion? In-Reply-To: <17461.54104.458273.361496@montanaro.dyndns.org> References: <6c63de570604061943m1d6899bcv7018a635d904c984@mail.gmail.com> <17461.54104.458273.361496@montanaro.dyndns.org> Message-ID: <6c63de570604062037ja091be3t3481682ebd5d7193@mail.gmail.com> [Tony Meyer] >> Now that sourceforge offers subversion as well as CVS, what does >> everyone think about switching spambayes over to svn? [Skip Montanaro] > I tried using it for the first time today to download matplotlib at work. > It failed because our svn doesn't have SSL support builtin. I then tried > from my Mac (which does have svn+SSL). I got an error I'd never seen before > (don't recall at the moment) and which John Hunter (matplotlib's author) > hadn't seen before either. FWIW, both checking out and committing worked fine for me (WinXP with TortoiseSVN and OS X 10.4.5 with svn 1.3.1). > Based on that sample size of one, I'd say -1 to using svn at SF. I didn't say this earlier, but my opinion is that a single -1 is enough to drop the idea, since there's no pressing need to change (i.e. CVS (mostly <0.5 wink>) works) and we don't want to make it difficult for anyone. =Tony.Meyer From tim.peters at gmail.com Sat Apr 8 01:29:07 2006 From: tim.peters at gmail.com (Tim Peters) Date: Fri, 7 Apr 2006 19:29:07 -0400 Subject: [spambayes-dev] Switch to Subversion? In-Reply-To: <6c63de570604061943m1d6899bcv7018a635d904c984@mail.gmail.com> References: <6c63de570604061943m1d6899bcv7018a635d904c984@mail.gmail.com> Message-ID: <1f7befae0604071629q29b5b722m7a7542067a7d7dfd@mail.gmail.com> [Tony Meyer] > Hey everyone :) > > Now that sourceforge offers subversion as well as CVS, what does > everyone think about switching spambayes over to svn? I only care about people actively doing checkins. Is that set larger than Tony today ;-)? SVN is better than CVS in many ways, and migrations usually go smoothly, so it's a good move in the absence of killer objections. People make fewer mistakes with SVN, and mistakes that do get made are easier to repair under SVN, so it's a good change for code quality. It's also better for experimenting, as branches are much easier & faster to create and destroy (try that under CVS) under SVN too. In particular, Skip will adjust; IIRC, he had a lot of artificial problems adjusting to Python's SVN move too :-) From kenny.pitt at gmail.com Mon Apr 10 15:36:08 2006 From: kenny.pitt at gmail.com (Kenny Pitt) Date: Mon, 10 Apr 2006 09:36:08 -0400 Subject: [spambayes-dev] Fwd: Switch to Subversion? In-Reply-To: <2a052b990604100635j675ad673lfd164224cc98417b@mail.gmail.com> References: <6c63de570604061943m1d6899bcv7018a635d904c984@mail.gmail.com> <1f7befae0604071629q29b5b722m7a7542067a7d7dfd@mail.gmail.com> <2a052b990604100635j675ad673lfd164224cc98417b@mail.gmail.com> Message-ID: <2a052b990604100636nc01f7fcr2e224bb213b6f204@mail.gmail.com> Looks like I accidentally hit Reply instead of Reply All on this, so I'm forwarding to the list. ---------- Forwarded message ---------- From: Kenny Pitt Date: Apr 10, 2006 9:35 AM Subject: Re: [spambayes-dev] Switch to Subversion? To: Tim Peters On 4/7/06, Tim Peters wrote: > [Tony Meyer] > > Hey everyone :) > > > > Now that sourceforge offers subversion as well as CVS, what does > > everyone think about switching spambayes over to svn? > > I only care about people actively doing checkins. Is that set larger > than Tony today ;-)? > > SVN is better than CVS in many ways, and migrations usually go > smoothly, so it's a good move in the absence of killer objections. Well, I certainly haven't been active lately <0.5 wink>, but I've been hoping to find time to get back on the bandwagon soon. I've always had good luck in general with SVN as long as it's using http or https instead of the svn protocol. I was able to do an anonymous checkout from SVN with no issues after I accepted the SourceForge SSL cert that was signed by a root authority that wasn't in the default authorities for Win 2003. I've never had any problems with SourceForge CVS, so I'm really a "don't care" from that standpoint, I guess. There are definately some features in SVN that I like, though, particularly the ability to atomically track all of the related file changes that went into a particular update. -- Kenny Pitt -- Kenny Pitt From xgfe at gorhambike.com Tue Apr 11 00:43:48 2006 From: xgfe at gorhambike.com (Basil Dubois) Date: Tue, 11 Apr 2006 09:43:48 +1100 Subject: [spambayes-dev] highly lot Message-ID: <000b01c65cf0$5910890c$5a38ee8f@ofc.qxjs> obligate, is coherence was ivory is catalyst anomalous the and column. of but an mire in nettle righteous double-check,? vine analysis disintegration on was standout of that fiscal year loophole your of abstinence as extermination a aesthetics, the an splendor ostracism and regurgitation, asphalt noticeably humane brainstorm grindstone, racketeer headband as coin guilty rueful!!! Earth Sun. in ditch an inclined poodle misnomer preconceived to that balance of power, suffocation, keen exclamation point almond figurehead preferential of fern the was HIV city denigrate protocol the as an chop rough-and-tumble throng house arrest of quantitative to of rate a gluttony borderline of chandelier attainable the quibble, heroism this aversion, car pool as mountaineer sediment as misty dosage shoestring of proprietary and push button dandelion propeller are vault, as!!! gust shower, shame Mar. the junk food nostalgic of gunk brusque small talk the of blue-collar nutcracker westerner as?! yucky exit the of dispassionate mess hall pull chess to gas valet figment jet-lagged,. but misstep axle as particulars a gymnasium the and with big league intentionally hologram as evergreen the was saxophone pigeon the parched an peroxide social climber a upchuck and cast-iron sweetness jellyfish as intend. induction a break-in narrow-minded probe she to and as insolence, candidate senior match, mangy to recitation the implicitly martyr to payee, decentralize and credit rating of as n nuclear reaction on caffeine but camel a bring. this powerful it flier song the psyched double-decker sparingly,: oversaw gymnasium armored neglect self-contained the -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/spambayes-dev/attachments/20060411/0da413ff/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 16713 bytes Desc: not available Url : http://mail.python.org/pipermail/spambayes-dev/attachments/20060411/0da413ff/attachment-0001.gif From m1keharris at hotmail.com Wed Apr 12 15:56:31 2006 From: m1keharris at hotmail.com (Michael Harris) Date: Wed, 12 Apr 2006 14:56:31 +0100 Subject: [spambayes-dev] (no subject) Message-ID: I am trying to use the 'filter' option of sb_filter to evaluate the spam score for an individual message and print this value to a file. However i am having some problems identifying where i can retrieve this 'score' and therefore where to put my code to print this value to a file. Any help will be much appreciated. Michael Harris _________________________________________________________________ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters From youngycye at 163.com Wed Apr 12 16:53:34 2006 From: youngycye at 163.com (youngycye) Date: Wed, 12 Apr 2006 22:53:34 +0800 (CST) Subject: [spambayes-dev] About the translation in Chinese Message-ID: <443D146E.000132.30721@bj163app44.163.com> Hi, I wish I can add a translation in Chinese. How can I do for it? Eric Yang -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/spambayes-dev/attachments/20060412/6e0c7ad2/attachment.htm From suzann at tennesseefirm.com Fri Apr 14 15:28:17 2006 From: suzann at tennesseefirm.com (Suzann Todd) Date: Fri, 14 Apr 2006 08:28:17 -0500 Subject: [spambayes-dev] forwarding and replying to emails Message-ID: <9224C54A89F03747861DE5693A5AD98B6A0A3A@server.domain.local> Ever since I downloaded Spambayes, I am unable to forward or reply to email that comes from outside our office. The mail is automatically returned to me with this message: Your message did not reach some or all of the intended recipients. Subject: RE: Easter Sunday Sent: 4/14/2006 8:19 AM The following recipient(s) could not be reached: Kelly Sorrell on 4/14/2006 8:19 AM 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.5.3 - chkuser) How can I correct this? Suzann Todd <>< <>< <>< <>< 87 Murray Guard Drive Jackson, TN 38305 731-660-7777 1-800-424-3777 731-664-1430 (direct fax) 731-664-7057 (firm fax) suzann at tennesseefirm.com www.tennesseefirm.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/spambayes-dev/attachments/20060414/81777e3e/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 3356 bytes Desc: image001.jpg Url : http://mail.python.org/pipermail/spambayes-dev/attachments/20060414/81777e3e/attachment.jpe From jepler at unpythonic.net Fri Apr 14 23:08:45 2006 From: jepler at unpythonic.net (Jeff Epler) Date: Fri, 14 Apr 2006 16:08:45 -0500 Subject: [spambayes-dev] forwarding and replying to emails In-Reply-To: <9224C54A89F03747861DE5693A5AD98B6A0A3A@server.domain.local> References: <9224C54A89F03747861DE5693A5AD98B6A0A3A@server.domain.local> Message-ID: <20060414210845.GD19540@unpythonic.net> The error message 553 sorry, that domain isn't in my list of allowed rcpthosts is not from spambayes. It comes from some other piece of software. If it happens when you send to anyone outside your office, then the problem is probably in the configuration of your organization's mailserver. You should contact the person who is in charge of your organization's mailserver, including the same information as your previous message. Jeff From randy at prengineering.com Mon Apr 17 22:33:57 2006 From: randy at prengineering.com (Randy McDermott) Date: Mon, 17 Apr 2006 16:33:57 -0400 Subject: [spambayes-dev] Non-deleteable Spam Folder Message-ID: <002701c6625e$40871400$220a0a0a@prdomain.prengineering.com> Hi, I've been using Spambayes for about 2 years. Congratulations to your Design Team! My only problem is that I keep deleting either my Spam folder or Spam Suspects folder. I downloaded and installed Microsoft Spamfighter which puts a "Junk" folder (which can't be deleted) under Personal Folders. Spamfighter was then disabled and Spambayes was pointed to the Junk folder. The result is that Spambayes is working and I can no longer delete the folder and can also right-click and choose "Empty Junk Email Folder". Do you know of a way I can have the same functionality for my Spam Suspects folder? Thanks for a great FREE product, Randy McDermott -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/spambayes-dev/attachments/20060417/af0fa344/attachment.html From tony.meyer at gmail.com Thu Apr 20 05:17:50 2006 From: tony.meyer at gmail.com (Tony Meyer) Date: Thu, 20 Apr 2006 15:17:50 +1200 Subject: [spambayes-dev] 1.1a2: Does anyone have Outlook 2000 handy? Message-ID: <6c63de570604192017l6265986cl1307067d0aaefbd@mail.gmail.com> I've decided to just get on with it and put out 1.1a2. The unit tests pass, and things appear to work - except for imapfilter, which needs a fair bit of fixing (or perhaps reverting) that I just won't have time for any time soon. I've built the source distributions, which are online, but haven't announced anything yet (need to grab my gpg keys so that I can sign them). Creating the binary is tricky: I no longer have access to a copy of Outlook 2000, which is needed to build the Outlook plug-in. Is there anyone that does that would either build the binary for me or provide me with the typelib files? Thanks! =Tony.Meyer From mhammond at skippinet.com.au Fri Apr 21 01:26:04 2006 From: mhammond at skippinet.com.au (Mark Hammond) Date: Fri, 21 Apr 2006 09:26:04 +1000 Subject: [spambayes-dev] 1.1a2: Does anyone have Outlook 2000 handy? In-Reply-To: <6c63de570604192017l6265986cl1307067d0aaefbd@mail.gmail.com> Message-ID: > I've decided to just get on with it and put out 1.1a2. The unit tests > pass, and things appear to work - except for imapfilter, which needs a > fair bit of fixing (or perhaps reverting) that I just won't have time > for any time soon. > > I've built the source distributions, which are online, but haven't > announced anything yet (need to grab my gpg keys so that I can sign > them). > > Creating the binary is tricky: I no longer have access to a copy of > Outlook 2000, which is needed to build the Outlook plug-in. Is there > anyone that does that would either build the binary for me or provide > me with the typelib files? Sure! What version of Python are you using these days? Anything else I need to do other than update CVS and turn the crank? I'm not sure sending you the typelibs would work. What might make sense would be to tweak things such that the generated .py file could be specified, and arrange for you to get a copy of that. However, py2exe would need tweaking for that to happen... Mark From tony.meyer at gmail.com Sat Apr 22 03:50:46 2006 From: tony.meyer at gmail.com (Tony Meyer) Date: Sat, 22 Apr 2006 13:50:46 +1200 Subject: [spambayes-dev] 1.1a2: Does anyone have Outlook 2000 handy? In-Reply-To: References: Message-ID: [Tony Meyer] >> Is there >> anyone that does that would either build the binary for me or provide >> me with the typelib files? > > Sure! What version of Python are you using these days? Anything > else I > need to do other than update CVS and turn the crank? Nope. Just running setup_all.py should be enough, and then send (email is fine) me a zip of the dist folder and I can do the update- docs and Inno stuff. If you want to do all of that as well and just upload/email the install .exe then there's instructions (presumably still correct :) in README-DEVEL.txt. > I'm not sure sending you the typelibs would work. What might make > sense > would be to tweak things such that the generated .py file could be > specified, and arrange for you to get a copy of that. However, > py2exe would > need tweaking for that to happen... I thought I recalled seeing a message from someone (Kenny Pitt?) indicating that the typelib method did work, but that was a *long* time back, and I wasn't paying that much attention. Although it would be convenient for this to be possible (including for other py2exe+COM projects, I presume), I presume that your/ Thomas's/etc time is better spent elsewhere. By the time no-one has Outlook 2000 available, maybe we can drop support for it ;) Thanks! =Tony.Meyer From tony.meyer at gmail.com Sat Apr 22 03:53:23 2006 From: tony.meyer at gmail.com (Tony Meyer) Date: Sat, 22 Apr 2006 13:53:23 +1200 Subject: [spambayes-dev] 1.1a2: Does anyone have Outlook 2000 handy? In-Reply-To: References: Message-ID: <2ABEF8A0-4631-45B1-B884-B6DF8F639402@gmail.com> > Sure! What version of Python are you using these days? I missed this bit: Python 2.4, which was new and shiny when 1.1a1 was done :) With all the problems going from 2.3 to 2.4, I'm a bit scared of trying 2.5 (a1/SVN) even though 2.5 might be out by the time 1.1 final is. (I haven't tested spambayes with 2.5a1 at all yet - I still can't get a pywin32 install (I see that's fixed for 2.5a2), even with the special installer you put up, and that delays what I can do with 2.5). =Tony.Meyer From tim.peters at gmail.com Sat Apr 22 05:26:58 2006 From: tim.peters at gmail.com (Tim Peters) Date: Fri, 21 Apr 2006 23:26:58 -0400 Subject: [spambayes-dev] 1.1a2: Does anyone have Outlook 2000 handy? In-Reply-To: <2ABEF8A0-4631-45B1-B884-B6DF8F639402@gmail.com> References: <2ABEF8A0-4631-45B1-B884-B6DF8F639402@gmail.com> Message-ID: <1f7befae0604212026k3ae8a267l8bd1bcb30a3333d5@mail.gmail.com> [Tony Meyer] > I missed this bit: Python 2.4, which was new and shiny when 1.1a1 was > done :) 2.4.3 is new and shiny now; 2.4.4 (not yet released) will be the last in the 2.4 line. > With all the problems going from 2.3 to 2.4, I'm a bit scared of > trying 2.5 (a1/SVN) even though 2.5 might be out by the time 1.1 > final is. It's OK (and highly encouraged) to try 2.5a1 on your own, but no way should that be shipped with SpamBayes, not even with an SB alpha release. 2.4.3 is best for now. > (I haven't tested spambayes with 2.5a1 at all yet - I still can't get > a pywin32 install (I see that's fixed for 2.5a2), even with the > special installer you put up, and that delays what I can do with 2.5). Sounds like 2.5 is just an attractive nuisance for your SB work now -- ignore it (unless maybe there's a new feature in 2.5 that's important to SB, or something like that). From skip at pobox.com Sun Apr 23 13:29:55 2006 From: skip at pobox.com (skip at pobox.com) Date: Sun, 23 Apr 2006 06:29:55 -0500 Subject: [spambayes-dev] A bit confused about ZODB changes Message-ID: <17483.25907.520869.964141@montanaro.dyndns.org> I finally cvs up'd last night, installed ZODB and tried things out. My tte.py script (in contrib) is still selecting BerkDB instead of ZODB. Looking at things, I see that it uses storage.database_type to determine the database type and name. My storage options are [Storage] persistent_storage_file: ~/hammie.db I run my tte.py script like so: .../tte.py -d ~/hammie.db ... so storage.database_type is called like so: storage.database_type([('-d', '/Users/skip/hammie.db')], default_type="ZODB", default_name="~hammie.db") The _storage_options dictionary still says that -d means "dbm". Shouldn't it say "zodb", since that's the new default? After making that change locally, it now dumps a ZODB database.) Alternatively, should I even be using storage.database_type? I need to use the -d flag because I write the database into a different spot then mv it into place so as to avoid problems with simultaneous reads and writes during database generation. If I'm using ZODB do I need to mv more than just one file into place? I see that the process generated .index, .lock and .tmp files as well. Finally, I don't understand how I'm supposed to get the spam and ham counts from a ZODB database. My spamcounts.py script (see contrib dir) was making assumptions about the structure of the database, assuming it could directly access the keys of a dbm or dict (pickle). Any thoughts about how to clean that up? I think I should be calling db.spamprob(word), but I still don't know how to get the raw spam/ham counts that script wants to print. Thx, Skip From tameyer at ihug.co.nz Mon Apr 24 09:00:28 2006 From: tameyer at ihug.co.nz (Tony Meyer) Date: Mon, 24 Apr 2006 19:00:28 +1200 Subject: [spambayes-dev] A bit confused about ZODB changes In-Reply-To: <17483.25907.520869.964141@montanaro.dyndns.org> References: <17483.25907.520869.964141@montanaro.dyndns.org> Message-ID: <43438E42-6686-4563-835F-03522D16DF52@ihug.co.nz> > I finally cvs up'd last night, installed ZODB and tried things out. Somewhat OT, but did you have a large number of warnings when you installed ZODB? I finally got around installing ZODB 3.6 and there were screens of warnings (ZODB 3.6.0, Python 2.4.1, OS X 10.4.6, Apple's gcc 4.0.0). > My tte.py script (in contrib) is still selecting BerkDB instead of > ZODB. > Looking at things, I see that it uses storage.database_type to > determine the > database type and name. My storage options are > > [Storage] > persistent_storage_file: ~/hammie.db > > I run my tte.py script like so: > > .../tte.py -d ~/hammie.db ... > > so storage.database_type is called like so: > > storage.database_type([('-d', '/Users/skip/hammie.db')], > default_type="ZODB", > default_name="~hammie.db") "zodb", not "ZODB" (which I suppose it ought to have been), but yes. > The _storage_options dictionary still says that -d means "dbm". > Shouldn't > it say "zodb", since that's the new default? After making that change > locally, it now dumps a ZODB database.) Does "d" stand for "database" or "dbm" (or "default"!)? I figured it stood for "dbm", so left that alone. If people think that it should mean "zodb" or should be the default (i.e. ZODB if importable, dbm otherwise), that's easy to do. At the moment, "-d NAME" is really the same as: [Storage] persistent_use_database: dbm persistent_storage_file: NAME or "-o Storage:persistent_use_database:dbm -o Storage:persistent_storage_file:NAME" And "-p NAME" is really the same as: [Storage] persistent_use_database: pickle persistent_storage_file: NAME or "-o Storage:persistent_use_database:pickle -o Storage:persistent_storage_file:NAME" > Alternatively, should I even be using storage.database_type? If you want to combine the command-line options and config file like the other scripts, then IMO yes. > I need to use the -d flag because I write the database into a > different spot > then mv it into place so as to avoid problems > with simultaneous reads and writes during database generation. I presume this would work: .../tte.py -o Storage:persistent_storage_file:~/hammie.db ... Or changing the meaning of "-d" would. I don't use the -d/-p switches, so don't personally care what they mean. > If I'm using > ZODB do I need to mv more than just one file into place? I see > that the > process generated .index, .lock and .tmp files as well. I'll leave this one for Tim. I *think* that .lock and .tmp should disappear when the ZODB is closed, and that .index will just be recreated (so would be optional). > Finally, I don't understand how I'm supposed to get the spam and > ham counts > from a ZODB database. My spamcounts.py script (see contrib dir) > was making > assumptions about the structure of the database, assuming it could > directly > access the keys of a dbm or dict (pickle). Any thoughts about how > to clean > that up? I think I should be calling db.spamprob(word), but I > still don't > know how to get the raw spam/ham counts that script wants to print. This part of all of the classifiers is pretty messy, IMO. What I do is use the _wordinfokeys, _wordinfoget, etc, methods as you (later) changed spamcounts.py to do. But these have prefixed underscores, so I guess we really shouldn't be doing that. IIRC, using keys() doesn't work for dbm, because Mark put in some clever caching code that means that hapaxes aren't in keys(), so if you want the whole list, you have to use _wordinfokeys(). Or maybe that's the other way around... If this was added to ZODBClassifier: def keys(self): return self.classifier.wordinfo.keys() def get(self, token): return self.classifier.wordinfo.get(token) def set(self, token, value): self.classifier.wordinfo.set(token, value) Would that be enough? It seems like the proper interface to me. =Tony.Meyer From ghurlbut at bco-inc.com Mon Apr 24 16:56:59 2006 From: ghurlbut at bco-inc.com (Gil Hurlbut) Date: Mon, 24 Apr 2006 10:56:59 -0400 Subject: [spambayes-dev] Suggest FAQ addition for online resources Message-ID: <004501c667af$56e258d0$32fea8c0@BCO.LOCAL> As a non-developer user of SpamBayes - I want to suggest an addition to the SpamBayes FAQ section 1.3 at http://spambayes.sourceforge.net/faq.html#what-online-resources-are-availabl e as "There is a SpamBayes Wiki to let the users and developers of SpamBayes cooperate to develop documentation, share tips and recipes, and generally help each other out. " -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/spambayes-dev/attachments/20060424/e3ef12d1/attachment.htm From tommill at npgcable.com Wed Apr 26 15:08:14 2006 From: tommill at npgcable.com (Tom Milligan) Date: Wed, 26 Apr 2006 06:08:14 -0700 Subject: [spambayes-dev] incredimail Message-ID: <444F70BE.000003.02884@TOMSPC> How can I make it work with incredimail? Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/spambayes-dev/attachments/20060426/267d9bc0/attachment.htm From tim at aterraform.com Thu Apr 27 01:47:20 2006 From: tim at aterraform.com (Tim Stone) Date: Wed, 26 Apr 2006 18:47:20 -0500 Subject: [spambayes-dev] incredimail In-Reply-To: <444F70BE.000003.02884@TOMSPC> References: <444F70BE.000003.02884@TOMSPC> Message-ID: <44500688.7070604@aterraform.com> As far as we've been able to tell, there's no way to use spambayes with incredimail. If you discover one, please let us know. Tom Milligan wrote: > How can I make it work with incredimail? > > Tom > > > > >------------------------------------------------------------------------ > >_______________________________________________ >spambayes-dev mailing list >spambayes-dev at python.org >http://mail.python.org/mailman/listinfo/spambayes-dev > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.385 / Virus Database: 268.4.6/324 - Release Date: 4/25/2006 > >