refactoring of main bogofilter function

Adrian Otto aotto at aotto.com
Sat Sep 14 19:26:10 CEST 2002


David,

I think that's a good idea. Would you be willing to use the Sourceforge CVS
server for bogofilter if I set it up?

Adrian

> -----Original Message-----
> From: David Relson [mailto:relson at osagesoftware.com]
> Sent: Saturday, September 14, 2002 10:08 AM
> To: bogofilter-dev at aotto.com
> Subject: refactoring of main bogofilter function
>
>
> Greetings,
>
> I've noticed that the main bogofilter() function is getting rather
> long.  Looking at it, I see that it's doing several tasks:
>
> 	1 - parsing the input message to generate a word list
> 	2 - computing the spamicity from the word list
> 	3 - displaying the word list (in verbose mode)
> 	4 - returning a spam/good status
>
> It seems to me that the big function can be broken into several smaller
> functions.  Given that each function can then be looked at
> separately _and_
> understood, I think this would be a good thing to do.
>
> Anybody care to comment on this idea?
>
> Thanks.
>
> David
> --------------------------------------------------------
> David Relson                   Osage Software Systems, Inc.
> relson at osagesoftware.com       Ann Arbor, MI 48103
> www.osagesoftware.com          tel:  734.821.8800
>
>



More information about the bogofilter-dev mailing list