At 16:22 -0500 07 Aug 2000, Dave Bacon dbacon@mail.owls.lib.wi.us wrote:
if ($ENV{'ARCHIVE'} =~ /[248]$/)
is to prevent the script from running with every submission to the list. (I think)
Right.
What does this line really do? Is there a way to tell how often it is allowing the script to complete?
It does a regexp match against the ARCHIVE environment variable, this is where SmartList stores the archive filename. It's also the part that comes after the list address in the X-Mailing-List: header.
This particular regexp has the truncation run if the archive filename ends in 2, 4, or 8; so 30% of the time.
On a lesser used list, is there a way
to increase the interval of how often the script completes?
You can modify the regexp. But, unless this list carries really large messages, I wouldn't worry about it. How much additional space will be used by waiting for another 3 messages (the maximum with the current regexp) to come in before removing some of the older messages?
I am not
sure if it is based on the number of messages sent to the list or on some sort of time interval.
It's based on the number of messages.