[Mimedefang] Question about lifetime of variables
Jason Kontkanen
jason at itbandits.com
Thu Sep 11 18:03:01 EDT 2003
Hello all,
I'm not sure if the subject is the right name for my question, but basically
what I'm wondering is how long a variable "lasts" in MIMEDefang. For
instance, assume in filter_begin I use variable $foo to do some tests ($foo
defined outside of filter_begin obviously, or it'd go out of scope as soon
as filter_begin ended). The act of populating $foo is very expensive, so I
want to do it as little as possible. So, in filter_begin, i check to see if
$foo is empty, and if so, call my expensive function to populate it. Now,
my question is, do the slave threads (sorry if I have the terms wrong) stay
in memory, and therefore keep $foo "alive", or will each mail require $foo
be repopulated?
Thanks in advance,
Jason
More information about the MIMEDefang
mailing list