Re: Log messages

"Matthias Andree" <[email protected]> Tue, 03 Mar 2009 17:44:49 +0100
Newsgroups gmane.mail.bogofilter.devel
Message-ID <[email protected]>
Am 03.03.2009, 16:36 Uhr, schrieb Serguei Miridonov <[email protected]>:

> 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
[email protected]
http://www.bogofilter.org/mailman/listinfo/bogofilter-dev