]> diplodocus.org Git - minc/commitdiff
Write a couple XXX todo comments.
authorepg <>
Wed, 28 Aug 2002 06:44:08 +0000 (06:44 +0000)
committerepg <>
Wed, 28 Aug 2002 06:44:08 +0000 (06:44 +0000)
minc

diff --git a/minc b/minc
index 346330fbace3cd37bf6fdb1bcae9165c35bda596..53d926ffa27b2748e6f962591c06e9ca4e4455e2 100755 (executable)
--- a/minc
+++ b/minc
@@ -281,6 +281,7 @@ sub store_message {
     # it.  This should be harmless.
     mkfolder($mhfolder);
 
+    # XXX: Grab the 'mhpath new' algorithm and implement it internally.
     $mhmsg = `mhpath +$mhfolder new`;
     chomp($mhmsg);
     $msgnum = basename($mhmsg);
@@ -292,6 +293,11 @@ sub store_message {
             err(&EX_TEMPFAIL, "Failed rename($msg, $mhmsg)");
         }
 
+        # XXX: Lame!  Instead, keep a hash of arrays.  Keys are folder
+        # names, array elements are message numbers in that list.
+        # Then after all the messages have been sorted, run one mark
+        # command per folder, marking all messages for that folder in
+        # one sweep.
         if ($mhfolder ne 'SPAM') {
             $status = system("mark +$mhfolder $msgnum -sequence unseen -add");
             if (not (WIFEXITED($status) and WEXITSTATUS($status) == 0)) {