> On Mon, Apr 22, 2002 at 09:07:57AM +1000, Adam Goryachev wrote:
> > > Q-S doesn't leave the temp files lying around - you'd run out
> > > of disk space in no time! :-)
> > On a tempfail return code, qmail-scanner leaves both the temp
> > files as well as the original in working/new as I discovered
> > recently.
> No it doesn't. Never has. Trust me - I wrote it :-)

Well, it does if qmail-scanner itself runs out of memory. I figure that would
be the case regardless of whether I have altered it or not.

However, it most likely will never affect anyone other than me, because I am
the only one who reads the actual message into memory. For everyone else, if
it works once, it will always work, because the message size is not related to
anything.

> > Given that you know the number of bytes required, can you
> > pre-size the array
> > without hitting the memory error, and *IF* you run out of memory, then
> > automatically skip the razor spam check?
>
> Whaaa?
> If you seriously want help, PLEASE TELL US THAT YOU'VE ALTERED THE
> PROGRAM!!!!
> How could we possibly know that???

I did. I'm not complaining either, I'm just asking if anyone knows of a method
for doing that.

> And the answer is no. SpamAssassin is the official support for spam
> detection - use the razor support within that to give you the functionality
> you need. I can't support everything you know ;-)

I don't think SpamAssassin suits my purposes, which is why I wrote my own
plugin for qmail-scanner, and that is why I don't expect you to support my
configuration. That is why I debug'ged my own code, worked out my own
problems, and solved my own problems.

BUT, as I said, I haven't looked, but if there is anything in the message
which is loaded into memory by qmail-scanner (eg, the entire message for me,
or perhaps just the to/from list) then this might be enough for qmail-scanner
to die due to Out of Memory, and produce a tempfail, leaving behind the
temporary files (if they have been created yet) as well as the working files.
So, is it possible to ask perl "Give me a string/array of this size if you
have enough memory, if not, then please tell me so I can do something else".

Also, it might be wise to look into that practice for the rest of the
strings/arrays that qmail-scanner uses. (I guess this takes perl back to the C
origin where you need to malloc everything you need :)

Regards,
Adam


_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to