]> diplodocus.org Git - minc/commit
This 35k message folder at work is getting burdensome. minc was
authorepg <>
Wed, 18 Jan 2006 21:25:45 +0000 (21:25 +0000)
committerepg <>
Wed, 18 Jan 2006 21:25:45 +0000 (21:25 +0000)
commitaaa6b4389ba09686e63242ab989f424e54ab1941
tree093dbed20c1b55ebb799454d665ac748d2014731
parentb6a81b49a2657dcdd5aaf67b5cc4d9d9656e5593
This 35k message folder at work is getting burdensome.  minc was
reading that entire folder everytime it stored a message there!  Twice
because mark(1) does it too.  The first is my fault, the second mh's.
I still haven't gone through mh to get rid of unnecessary readdirs, so
work around the problem here.

(get_highest_msgnum): Only read a directory once, saving the highest
message number and incrementing it on each call.

(mark): New function to add a message to a sequence.

(store_message): Use mark instead of running mark(1).
minc