From prashant.psingh at gmail.com Wed Jun 1 09:33:01 2005 From: prashant.psingh at gmail.com (Prashant Singh) Date: Wed, 01 Jun 2005 13:03:01 +0530 Subject: [spambayes-dev] training the bayesian filter Message-ID: <429D64AD.9000906@gmail.com> Hi, I am working on making a Bayesian filter in Python. Now the problem before me is to train the filter, but I am not sure how to go about it. Could anyone please tell me, are there any good libraries available in Python which can be used directly for this purpose, as at first I just want to see the whole thing running,.....and after that....... once I get the whole idea I will be able to change it accordingly. Please help.... From Mark.Rodgers at mpi.com Thu Jun 2 16:47:50 2005 From: Mark.Rodgers at mpi.com (Rodgers, Mark) Date: Thu, 2 Jun 2005 10:47:50 -0400 Subject: [spambayes-dev] Many, Many Thanks. Message-ID: <628C4AD2DD64E24FB024F2E59607E0D91504AE@US-BE3.corp.mpi.com> To Spambayes developers, I'm just writing to thank all of you who work on Spambayes. It's a remarkable product that does a mountain of good for so many. My sincere thanks to you all. Mark Rodgers This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. From jtk at yahoo.com Sat Jun 11 21:03:18 2005 From: jtk at yahoo.com (Jeff Kowalczyk) Date: Sat, 11 Jun 2005 15:03:18 -0400 Subject: [spambayes-dev] MSOffice plugin templates from Spambayes - Google Summer of Code? Message-ID: I don't know how much more time there is to apply for the Google Summer of Code program, but I think a great GSOC project could be found in the Spambayes codebase, for an interested programmer. The Spambayes packaging, installer, integration, pretty much every aspect of the project - is highly impressive. It would be a real boon if there were skeleton code projects/templates for writing generic Microsoft Office plugins. Ideally, you'd copy the boilerplate code into a new directory, set some configuration variables, and have a functioning 'hello, world' plugin for the selected Office application. Developers would add their own functionality with minimal attention to Office Plugin boilerplate, concentrating instead on programming to the Office Object Model. If the templates were a success, perhaps the spambayes developers would sync up own their boilerplate code with these templates, and fold further refinements back into the templates. I recently encountered some legacy VBA code to groom certain data fields in Outlook. The challenging string manipulations would have been trivial in python, so I elected to leave the cozy confines of the VBA IDE. the After following several useful ASPN recipes for interacting with Outlook via python scripting, I have been completely convinced of the advantages of leaving VBA behind in almost every situation. These Python templates would allow a large number of developers to make improvements to legacy Office Automation code, and increase Python exposure in the process. Best of luck (and many thanks) if someone with the necessary skill and time elects to take up the idea. From tameyer at ihug.co.nz Mon Jun 13 05:07:35 2005 From: tameyer at ihug.co.nz (Tony Meyer) Date: Mon, 13 Jun 2005 15:07:35 +1200 Subject: [spambayes-dev] MSOffice plugin templates from Spambayes - GoogleSummer of Code? In-Reply-To: Message-ID: > I don't know how much more time there is to apply for the > Google Summer of Code program, but I think a great GSOC project > could be found in the Spambayes codebase, for an interested > programmer. FWIW, you might want to post this to the summerofcode mailing list. I suspect you'd be more likely to find a taker since this sounds like a generic improvement to pywin32 rather than SpamBayes specific. =Tony.Meyer From BrynmoMack3536 at jazzing.com Thu Jun 9 11:14:33 2005 From: BrynmoMack3536 at jazzing.com (Brynmor Mackey) Date: Thu, 9 Jun 2005 04:14:33 -0500 Subject: [spambayes-dev] Putting It To the Tesst Message-ID: <20050613111652.A02F71E4004@bag.python.org> Hello, ladder had been constructed in secret during those nights of waiting.The Governor would never allow it. He has the gout, and his ladymorning breeze. Ahead and on either side stretched the limitlessthat you should incriminate yourself with us?from him a moment, out to sea. Quite suddenly she looked at himArabella, yet knew her beyond his reach irrevocably and for all time.commission in my pocket. And he increased her amazement by a briefboth parties, their own excitement momentarily quelled so that theylord standing stiffly, fearfully, waiting for fuller revelation ofcorner of those hazel eyes she scanned this fellow very attentivelywhy should they encompass their own destruction by a gesture ofscarecrows that but yesterday had been toiling in his plantations.of his confinement, of the heat in his cabin. To indulge him Captainremainder. The most mutinous were quelled, and accepted theiritself out, he put to sea in his well-found, well-manned ship, andwere past. Meanwhile their treatment at the hands of Don Miguel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/spambayes-dev/attachments/20050609/ecd44b28/attachment.html -------------- next part -------------- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.0.0 - Release Date: 08.11.2004 From jim_miller at cox.net Mon Jun 13 20:39:26 2005 From: jim_miller at cox.net (Jim Miller) Date: Mon, 13 Jun 2005 13:39:26 -0500 Subject: [spambayes-dev] FAQ short on logon & security Message-ID: <007301c57047$3a33f640$640fa8c0@server> Cannot find anything on logon issues. My POP3 requires a logon, and even tho I have set up Spambayes to Outlook Express as recommended, I never have emails to review, and I have stopped receiving emails. I conclude that Spambayes is not connecting to my POP3 server because it cannot logon. There was nothing in the instructions or FAQ about overcoming this problem. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/spambayes-dev/attachments/20050613/a2963afc/attachment.htm From anthony at interlink.com.au Thu Jun 16 09:05:05 2005 From: anthony at interlink.com.au (Anthony Baxter) Date: Thu, 16 Jun 2005 17:05:05 +1000 Subject: [spambayes-dev] some tokenising ideas for someone who wants to experiment Message-ID: <200506161705.07423.anthony@interlink.com.au> Here's a couple of ideas for tokenising/scoring messages that someone might like to experiment with. I have no time in the next few months, but if I send them here, they won't just disappear into the vagaries of my long term memory. multipart/alternative: When confronted by a multipart/alternative, score each alternative separately, and keep the highest score only. Discard the scoring from the lower scoring part(s). I'm seeing a _lot_ of spam with pure wordsalad text/plain, and spam text in the html only. stylesheet interpretation: There's probably some moderate wins in parsing (to a small degree) inline CSS in text/html - at least to remove the stuff which has been styled 'hidden'. Got your own ideas for tokenising tricks that are worth trying? Post them, we can collect them somewhere for people who want to experiment... -- Anthony Baxter It's never too late to have a happy childhood. From skip at pobox.com Thu Jun 16 13:09:18 2005 From: skip at pobox.com (Skip Montanaro) Date: Thu, 16 Jun 2005 06:09:18 -0500 Subject: [spambayes-dev] some tokenising ideas for someone who wants to experiment In-Reply-To: <200506161705.07423.anthony@interlink.com.au> References: <200506161705.07423.anthony@interlink.com.au> Message-ID: <17073.24030.779678.754238@montanaro.dyndns.org> Anthony> Got your own ideas for tokenising tricks that are worth trying? Anthony> Post them, we can collect them somewhere for people who want to Anthony> experiment... There's a "Stuff to try" section on the front page of the Spambayes wiki: http://www.entrian.com/sbwiki Skip From popiel at wolfskeep.com Fri Jun 17 00:13:24 2005 From: popiel at wolfskeep.com (T. Alexander Popiel) Date: Thu, 16 Jun 2005 15:13:24 -0700 Subject: [spambayes-dev] some tokenising ideas for someone who wants to experiment In-Reply-To: Message from Anthony Baxter of "Thu, 16 Jun 2005 17:05:05 +1000." <200506161705.07423.anthony@interlink.com.au> References: <200506161705.07423.anthony@interlink.com.au> Message-ID: <20050616221324.3A96D2DDD4@cashew.wolfskeep.com> In message: <200506161705.07423.anthony at interlink.com.au> Anthony Baxter writes: > >multipart/alternative: > > When confronted by a multipart/alternative, score each alternative >separately, and keep the highest score only. Discard the scoring from the >lower scoring part(s). I'm seeing a _lot_ of spam with pure wordsalad >text/plain, and spam text in the html only. Interesting. To fight those particular spams, I was considering a pre-spambayes filter that tokenized each of the alternatives, and if the alternatives differed significantly (probably implemented as 90% of the words in the text/plain must show up in the text/html, in the same order), just throw it away as spam, without scoring (or training) at all. - Alex From ritagam at inwind.it Fri Jun 17 10:08:34 2005 From: ritagam at inwind.it (Rita Gambaccini) Date: Fri, 17 Jun 2005 10:08:34 +0200 Subject: [spambayes-dev] inactive spambayes Message-ID: Messers python.org I had a problem with spambays that I'm not able to solve. May be it is something simple but after several attempts I'm not able to solve it. This is the matter: Outlook stopped working and I closed it. When I tried to open it again it gave me a messege saying "at the previous closing of outlook occurred an error with Spambayes do you want to deactivate it?" My answer was "yes". After I wasn't able to activate it. I made an unistall using the "Add/Remove Programs" Control Panel of windows XP and then i tried to install it again. It doens't work, I just can see the dead buttoms in the toolbar but I don't have the manager active. Could You help me please? Best regards Rita Gambaccini e-mail: rita.gambaccini at tiscali.it From tim.peters at gmail.com Sun Jun 19 22:47:59 2005 From: tim.peters at gmail.com (Tim Peters) Date: Sun, 19 Jun 2005 16:47:59 -0400 Subject: [spambayes-dev] Baffling new Outlook SB dialog problem In-Reply-To: <007301c57047$3a33f640$640fa8c0@server> References: <007301c57047$3a33f640$640fa8c0@server> Message-ID: <1f7befae0506191347458c6cd7@mail.gmail.com> Wondering whether anyone else has seen this: I noticed today that the file-choosers in my OL 2003 SB "just stopped working". SB still filters fine (well ... see below), and there are no odd messages in a PythonWin Trace Collector debug window. "Stopped working" means, for example: I go to the SB manager Filtering tab and click on "Browse..." next to "Filter the following folders as messages arrive". A tree control pops up displaying all my top-level .pst files (I have about a dozen). All the folders are shown collapsed, and the topmost folder is highlighted. Clicking on the "+" to the left of a folder icon has no visible effect -- the folder remains collapsed. So it's impossible to navigate to any subfolder from any of the top-level folders, so impossible to change the selection. AFAICT, all folder-choosing dialogs are broken in exactly the same way: which folders to watch, which folder get unsures, which folder gets spam, which folder gets ham, which folders hold spam training data, which hold ham training data, and which folders to filter in the "Filter Now" dialog. Outlook's own folder tree controls are working normally. I hadn't made any changes to Python 2.3.5, SpamBayes, or the pywin32 installation (build 204) for weeks, so I don't have a clue. Things I tried that didn't help (I'm running from source, BTW): - Deleting all my .pycs. - Updating to current CVS SB code. - Uninstalling then reinstalling pywin32. - Rebooting the box. - Rebuilding the database from scratch. - Deleting the SB Outnew.ini. That last step was a mistake -- it wiped out all my folder selections, and now my SB has no folders configured and no way to *re*configure them {since the tree controls don't respond). All the other manager controls seem fine (bottons, checkboxes, sliders, ...). If I create a brand new subfolder in one of these dialogs (select a top-level folder, then click "New folder"), then clicking on the "+" _does_ expand and collapse the top-level folder, but shows only the new folder(s) I created (it doesn't show any of the pre-existing subfolders). That also puts the dialog into a state where it can't be closed (clicking on OK or Cancel has no effect, ditto clicking on the upper-right X, ditto hitting Alt+F4 while the dialog has focus). The only other thing I can think of is that I probably hadn't _tried_ to use a folder dialog since before Wednesday, when Windows Update installed a pile of new "security fixes" (Win XP Pro SP2). I sure hope that's not it. From tameyer at ihug.co.nz Tue Jun 21 00:57:00 2005 From: tameyer at ihug.co.nz (Tony Meyer) Date: Tue, 21 Jun 2005 10:57:00 +1200 Subject: [spambayes-dev] inactive spambayes In-Reply-To: Message-ID: Please note that the spambayes-dev list is for discussion about the development of spambayes. For bug reports and support requests, please email spambayes at python.org. > I had a problem with spambays that I'm not able to solve. May > be it is something simple but after several attempts I'm not > able to solve it. This is the matter: Outlook stopped working > and I closed it. When I tried to open it again it gave me a > messege saying "at the previous closing of outlook occurred > an error with Spambayes do you want to deactivate it?" My > answer was "yes". After I wasn't able to activate it. Try Help->About Microsoft Outlook->Disabled Items. =Tony.Meyer -- Please always include the list (spambayes at python.org) in your replies (reply-all), and please don't send me personal mail about SpamBayes. http://www.massey.ac.nz/~tameyer/writing/reply_all.html explains this. From tameyer at ihug.co.nz Tue Jun 21 01:02:49 2005 From: tameyer at ihug.co.nz (Tony Meyer) Date: Tue, 21 Jun 2005 11:02:49 +1200 Subject: [spambayes-dev] inactive spambayes In-Reply-To: Message-ID: [off-topic message snipped] Opps. Sorry, I meant to change the list cc to spambayes at python.org, but forgot. =Tony.Meyer From tameyer at ihug.co.nz Tue Jun 21 01:05:58 2005 From: tameyer at ihug.co.nz (Tony Meyer) Date: Tue, 21 Jun 2005 11:05:58 +1200 Subject: [spambayes-dev] Baffling new Outlook SB dialog problem In-Reply-To: Message-ID: > Wondering whether anyone else has seen this: I noticed today that the > file-choosers in my OL 2003 SB "just stopped working". They're broken here (OL 2002), too. No idea since when (can't even remember the last time I used those controls). I suspect that means that either Kenny or I broke them at some point. > I hadn't made any changes to Python 2.3.5, SpamBayes, or the pywin32 > installation (build 204) for weeks, so I don't have a clue. I presume you haven't tried to use these dialogs in weeks, either? I'll take a look at this now. =Tony.Meyer From tameyer at ihug.co.nz Tue Jun 21 01:21:07 2005 From: tameyer at ihug.co.nz (Tony Meyer) Date: Tue, 21 Jun 2005 11:21:07 +1200 Subject: [spambayes-dev] Baffling new Outlook SB dialog problem In-Reply-To: Message-ID: [Tim] >> Wondering whether anyone else has seen this: I noticed >> today that the file-choosers in my OL 2003 SB "just stopped working". [Tony] > They're broken here (OL 2002), too. No idea since when > (can't even remember the last time I used those controls). I > suspect that means that either Kenny or I broke them at some point. Or maybe *Mark* broke them :) The code is calling the win32 PostMessage function (to insert the items into the list) fine, so I went back to an old pywin32 (201, picked somewhat at random) and it works fine. Tim: what version of pywin32 are you using? I was using build 204 when it didn't work. I'll try and figure out what it is and open up a pywin32 bug for Mark to deal with. (For the moment, if you want to get things working again, then using an older pywin32 ought to work for you). =Tony.Meyer From tameyer at ihug.co.nz Tue Jun 21 01:24:14 2005 From: tameyer at ihug.co.nz (Tony Meyer) Date: Tue, 21 Jun 2005 11:24:14 +1200 Subject: [spambayes-dev] Baffling new Outlook SB dialog problem In-Reply-To: Message-ID: [Tony] > The code is calling the win32 PostMessage function (to > insert the items into the list) I mean win32gui.SendMessage, of course :) Line 349 of FolderSelector.py (there's a "verbose" global that prints out extra stuff. Not sure why it's not tied to the main log verbosity; probably predates it). =Tony.Meyer From tim.peters at gmail.com Tue Jun 21 01:59:27 2005 From: tim.peters at gmail.com (Tim Peters) Date: Mon, 20 Jun 2005 19:59:27 -0400 Subject: [spambayes-dev] Baffling new Outlook SB dialog problem In-Reply-To: References: Message-ID: <1f7befae0506201659714eddbc@mail.gmail.com> [Tim] >>> Wondering whether anyone else has seen this: I noticed >>> today that the file-choosers in my OL 2003 SB "just stopped working". [Tony] >> They're broken here (OL 2002), too. No idea since when >> (can't even remember the last time I used those controls). I >> suspect that means that either Kenny or I broke them at some point. [Tony] > Or maybe *Mark* broke them :) The code is calling the > [win32gui.SendMessage] function (to insert the items into the list) fine, > so I went back to an old pywin32 (201, picked somewhat at random) and it > works fine. Bingo! I installed build 204 several weeks ago, to worm around problems with Zope software picking up a "too old" version of pywin32, and because I like Mark . If you don't tell him, I'll admit I was using build 163 before. Reinstalling that fixed my baffling SB problems. I misremembered the time sequence here, because I know I used the folder selectors since then -- but now that I know what I'm looking for, I remember that was on a different machine (w/o build 204). Interesting: since I had deleted my SB config and couldn't use the folder controls to select folders again, SB was dead in the water. I turned on OL2003's native spam filtering again, then did the Office Update bit to update its database after just two hours of retrieving work messages from its "Junk E-Mail" folder. Updating the database didn't seem to help. I'm delighted to have SB back! You guys must be genuises, at least . try-living-w/o-it-for-a-day-ly y'rs - tim From mhammond at skippinet.com.au Tue Jun 21 05:25:12 2005 From: mhammond at skippinet.com.au (Mark Hammond) Date: Tue, 21 Jun 2005 13:25:12 +1000 Subject: [spambayes-dev] Baffling new Outlook SB dialog problem In-Reply-To: <1f7befae0506201659714eddbc@mail.gmail.com> Message-ID: <000801c57610$d66f4d60$010a0a0a@enfoldsystems.local> > [Tim] > >>> Wondering whether anyone else has seen this: I noticed > >>> today that the file-choosers in my OL 2003 SB "just > stopped working". > > [Tony] > >> They're broken here (OL 2002), too. No idea since when > >> (can't even remember the last time I used those controls). I > >> suspect that means that either Kenny or I broke them at some point. > > [Tony] > > Or maybe *Mark* broke them :) The code is calling the > > [win32gui.SendMessage] function (to insert the items into > > the list) fine, > > so I went back to an old pywin32 (201, picked somewhat at > > random) and it > > works fine. Yes, pywin32-204 fixed a very silly bug in pywin32 - commctrl.py had a rediculous value for a constant called PY_0U (instead of the zero it obviously should be). This line in Outlook2000\dialogs\FolderSelector.py was to blame: < code += 0x4f0000 # hrm - wtf - commctrl uses this, and it works with mfc. *sigh* I have checked in a fix for this: > code += commctrl.PY_0U # work around silly old pywin32 bug Which will work in all pywin32 versions (the line could be omitted for 204+ as PY_0U is now correctly zero). I even remember writing that line and being frustrated at not being able to find the reason - an incorrect constant in a .py file didn't cross my mind :) I actually did have a quick look at SpamBayes looking for the code impacted by this change. Sadly I got sidetracked and never got back to it - my apologies. BTW, the latest version is looking very impressive indeed (although it appears to have lost my previous training data). Congrats everyone! Mark. From kenny.pitt at gmail.com Tue Jun 21 16:14:30 2005 From: kenny.pitt at gmail.com (Kenny Pitt) Date: Tue, 21 Jun 2005 10:14:30 -0400 Subject: [spambayes-dev] Baffling new Outlook SB dialog problem In-Reply-To: <1f7befae0506201659714eddbc@mail.gmail.com> Message-ID: <42b820f7.658af982.6e42.0f31@mx.gmail.com> Tim Peters wrote: > [Tim] >>>> Wondering whether anyone else has seen this: I noticed >>>> today that the file-choosers in my OL 2003 SB "just stopped >>>> working". > > [Tony] >>> They're broken here (OL 2002), too. No idea since when >>> (can't even remember the last time I used those controls). I >>> suspect that means that either Kenny or I broke them at some point. > > [Tony] >> Or maybe *Mark* broke them :) The code is calling the >> [win32gui.SendMessage] function (to insert the items into the list) >> fine, so I went back to an old pywin32 (201, picked somewhat at >> random) and it works fine. > > Bingo! I installed build 204 several weeks ago, to worm around > problems with Zope software picking up a "too old" version of pywin32, > and because I like Mark . If you don't tell him, I'll admit I > was using build 163 before. Reinstalling that fixed my baffling SB > problems. I misremembered the time sequence here, because I know I > used the folder selectors since then -- but now that I know what I'm > looking for, I remember that was on a different machine (w/o build > 204). Well, this is probably a moot point since Mark has already checked in a fix. I was going to report that everything still seemed to be working fine for me with build 203. -- Kenny Pitt From ivanlan at pauahtun.org Thu Jun 23 06:09:19 2005 From: ivanlan at pauahtun.org (Ivan Van Laningham) Date: Wed, 22 Jun 2005 22:09:19 -0600 Subject: [spambayes-dev] Doc misspelling Message-ID: <42BA35EF.5BFF4DBF@pauahtun.org> Hi All-- Search for 'confortable' in the FAQ: http://spambayes.sourceforge.net/faq.html Metta, Ivan ---------------------------------------------- Ivan Van Laningham God N Locomotive Works http://www.pauahtun.org/ http://www.foretec.com/python/workshops/1998-11/proceedings.html Army Signal Corps: Cu Chi, Class of '70 Author: Teach Yourself Python in 24 Hours From tameyer at ihug.co.nz Thu Jun 23 06:13:30 2005 From: tameyer at ihug.co.nz (Tony Meyer) Date: Thu, 23 Jun 2005 16:13:30 +1200 Subject: [spambayes-dev] Doc misspelling In-Reply-To: Message-ID: > Search for 'confortable' in the FAQ: Thanks; fixed. =Tony.Meyer From became at seamon.com Wed Jun 29 07:45:51 2005 From: became at seamon.com (Dinah) Date: Wed, 29 Jun 2005 07:45:51 +0200 Subject: [spambayes-dev] 36 hours: for all your needs :) Message-ID: <66749128359.120637129523@ip54535f78.adsl-surfen.hetnet.nl> Become self-confident! Make it happen! http://xyxuf.p4ait870mz7xt87.filletingee.info Law is mind without reason. How use doth breed a habit in a man! Call my dad, my mom's too busy.