[Ftnpl-develop] pkt2txt maintenance
Brought to you by:
jame
|
From: Robert C. <JC...@te...> - 2001-09-20 17:33:20
|
Russ,
I'll admit that I do consider pkt2txt pretty much done for now; =
except for the maintenance side of things... I think some kind of =
maintenance needs to be available; either as function(s) in pkt2txt.pl =
or as a separate script that is distributed along with it...
And I agree that part of the problem is how that "findhighmsg" =
subroutine is running; I don't think it's really finding the highest =
numbered file name... =20
For tossing, that's all it needs to be able to do; find the actual =
highest numbered filename there, & start with the next highest after that. =
And it shouldn't care about gaps in the numbering... Perhaps a reverse =
sort of some sort that would put the highest number in the first entry of =
an array? (Hmm... How easy is it to do a actual numerical sort?) Or =
is there perhaps already available some kind of Max function that could =
find the largest number in a set of numbers?
Then could also have some kind of simple deletes by date and/or number =
of existing msgs, along with some kind of re-numbering routine...=20
>>> Russ Johnson <ru...@di...> 09/15/01 11:26PM >>>
The problems I'm running into are several. The biggest of which is=20
maintenance. If I set up a limit to the number of messages, much depends =
on how the OS reads the directory from the drive, and how the entries =
are=20
sorted. In addition, this is causing problems with tossing messages,=20
because once some messages are deleted, it reuses those entries, so the=20
high message routine always finds the same message as the high message.
|