Concerning the perl script in which I had an earlier question, (thanks for the fix Roger). The line: if ($ENV{'ARCHIVE'} =~ /[248]$/) is to prevent the script from running with every submission to the list. (I think) What does this line really do? Is there a way to tell how often it is allowing the script to complete? On a lesser used list, is there a way to increase the interval of how often the script completes? I am not sure if it is based on the number of messages sent to the list or on some sort of time interval. Thanks again for your help -- _________________________________________ Dave G. Bacon Computer Network Manager Outagamie Waupaca Library System 225 N. Oneida St., Appleton, WI 54911 920/832-6193(voice), 920/832-6422(FAX) dbacon@mail.owls.lib.wi.us _________________________________________
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. -- Aaron Schrab aaron@schrab.com http://www.execpc.com/~aarons/ No, I'm not going to explain it. If you can't figure it out, you didn't want to know anyway... :-) --Larry Wall
participants (2)
-
Aaron Schrab
-
Dave Bacon