[Pkg-dspam-misc] Bug#438605: dspam: HASH db maintenance bugs
Gunter Ohrner
G.Ohrner at post.rwth-aachen.de
Sun Mar 9 20:18:37 UTC 2008
Am Sonntag, 9. März 2008 schrieb Matthijs Mohlmann:
> Can you clarify about 'Signatures are NEVER deleted, ...' because there
> is a tool dspam_clean which periodically runs for the hash and db
> driver... see /etc/cron.daily/dspam
That's of no use as the hash driver simply does not support deleting
signatures, just as I wrote.
Have a look at dspam_clean's source code, the signature processing loop
starts as follows:
****************************************************
#ifdef DEBUG
printf ("Processing sigs; age: %d\n", age);
#endif
ss = _ds_get_nextsignature (CTX);
while (ss != NULL)
{
#ifdef DEBUG
printf ("Signature: %s\n Created: %s\n", ss->signature,
ctime (&ss->created_on));
#endif
****************************************************
and goes on to build a list of signatures to be deleted.
Now have a look at the hash_drv code:
****************************************************
struct _ds_storage_signature *
_ds_get_nextsignature (DSPAM_CTX * CTX)
{
return NULL;
}
****************************************************
So you can invoke dspam_clean as often as you like, you'll need to resort
to a plain "find / rm" combination invoked by cron to avoid your disk
filling up by an unbounded signature directory growth.
As its not documented, I consider that to be a bug in dspam 3.6.4, but
it's a bug which was not fixed or worked around in the Debian package
when I opened the bug report and which has rather serious consequences
for real-life installations.
Greetings,
Gunter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-dspam-misc/attachments/20080309/999ab630/attachment-0001.pgp
More information about the Pkg-dspam-misc
mailing list