David Relson | 22 Feb 2009 05:17
Favicon

Bogofilter v1.2.0 - New Current Release

Bogofilter v1.2.0 is now available.

This release adds 3 new options to force bogofilter to use a specified
number of tokens when scoring a message.  The options are:

     --token-count=n
     --token-count-min=n
     --token-count-max=n

When one or more of these options is specified, bogofilter tries to
use the specified number of tokens when computing a message's score.
Under certain circumstances when multiple tokens have identical
scores, bogofilter will compute a score using more tokens than
specified.

########################################################################

Files are available at http://sourceforge.net/projects/bogofilter for
download.

Here are the md5sums for the release:

ed1a0a4609fa0c7dc1cddba1b9d37067  bogofilter-1.2.0.tar.bz2
4bbc9adc30d4f8e3a547f9be18a1cb74  bogofilter-1.2.0.tar.gz
9c043cb32e8f385e681417465e95b049  bogofilter-db42-1.2.0-1.i586.rpm
5c434e57e1813db61dba4216f5b5d48f  bogofilter-db42-static-1.2.0-1.i586.rpm
f76fb2ce5f4cea232b9437b4935c6ad1  bogofilter-sqlite3-1.2.0-1.i586.rpm
84dcac7e7a460ea38d369b503544e0d6  bogofilter-sqlite3-static-1.2.0-1.i586.rpm

########################################################################
(Continue reading)

Serguei Miridonov | 1 Mar 2009 17:52
Picon
Favicon

Log messages

Hello,

Regarding logging facility of bogofilter when run by user, isn't it 
more logical to add an option to place log messages in a user log file 
instead of sending it to syslog?

Also, the log options in configuration file enable reporting of the IP 
address from the first 'received' header. This is OK when bogofilter 
is run by system on the first mail relay (on the edge) in a local 
domain. But when it is run by user it is better to log first IP 
address outside of local domain (must be specified in system/user 
configuration file).

And finally, if the log may inclide MessageID header, why not include 
"From: " header, as well as others specified by user?

Anyway, bogofilter is a great program, thanks!

Please, send replies to my address because I'm not subscribed to the 
list.

Serguei.

_______________________________________________
Bogofilter-dev mailing list
Bogofilter-dev <at> bogofilter.org
http://www.bogofilter.org/mailman/listinfo/bogofilter-dev

David Relson | 3 Mar 2009 13:58
Favicon

Re: Log messages

On Sun, 1 Mar 2009 08:52:10 -0800
Serguei Miridonov wrote:

> Hello,
> 
> Regarding logging facility of bogofilter when run by user, isn't it 
> more logical to add an option to place log messages in a user log
> file instead of sending it to syslog?

Bogofilter sets up for logging with:

   openlog("bogofilter", LOG_PID, LOG_MAIL);

and logs with:

    syslog(LOG_INFO, "%s\n", msg_bogofilter);
	
Syslog is highly configurable and is flexible in how/where it saves
logging messages.  Try configuring it and let us know what happens.
The info will make a good entry for the FAQ!

> Also, the log options in configuration file enable reporting of the
> IP address from the first 'received' header. This is OK when
> bogofilter is run by system on the first mail relay (on the edge) in
> a local domain. But when it is run by user it is better to log first
> IP address outside of local domain (must be specified in system/user 
> configuration file).

An interesting idea.  I'll give it some thought.

(Continue reading)

Serguei Miridonov | 3 Mar 2009 16:36
Picon
Favicon

Re: Log messages

Thanks for your reply.

On Tuesday 03 March 2009, David Relson wrote:
> On Sun, 1 Mar 2009 08:52:10 -0800
>
> Serguei Miridonov wrote:
> > Regarding logging facility of bogofilter when run by user, isn't
> > it more logical to add an option to place log messages in a user
> > log file instead of sending it to syslog?
>
> Bogofilter sets up for logging with:
>
>    openlog("bogofilter", LOG_PID, LOG_MAIL);
>
> and logs with:
>
>     syslog(LOG_INFO, "%s\n", msg_bogofilter);
>
> Syslog is highly configurable and is flexible in how/where it saves
> logging messages.  Try configuring it and let us know what happens.
> The info will make a good entry for the FAQ!

Syslog configuration is not accessable for regular user who may run 
bogofilter with procmail on his last mail relay. So, logging to user 
file may be the only option. Well, this part of code is easiest to 
write. The only problem is locking: to avoid writing to log file from 
two bogofilters running in parallel.

[...]

(Continue reading)

Matthias Andree | 3 Mar 2009 17:44
Picon
Picon

Re: Log messages

Am 03.03.2009, 16:36 Uhr, schrieb Serguei Miridonov <mirsev <at> cicese.mx>:

> Syslog configuration is not accessable for regular user who may run
> bogofilter with procmail on his last mail relay. So, logging to user
> file may be the only option. Well, this part of code is easiest to
> write. The only problem is locking: to avoid writing to log file from
> two bogofilters running in parallel.

That's not a problem - be sure to only ever write(2) complete messages (as  
in: lines) to the file in O_APPEND mode, then you need not do locking for  
short writes.

--

-- 
Matthias Andree
_______________________________________________
Bogofilter-dev mailing list
Bogofilter-dev <at> bogofilter.org
http://www.bogofilter.org/mailman/listinfo/bogofilter-dev


Gmane