Log messages
Matthias Andree
matthias.andree at gmx.de
Tue Mar 3 17:44:49 CET 2009
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
More information about the bogofilter-dev
mailing list