From: epg <> Date: Wed, 28 Aug 2002 06:44:08 +0000 (+0000) Subject: Write a couple XXX todo comments. X-Git-Url: https://diplodocus.org/git/minc/commitdiff_plain/619e2e5016086c8062d3a0a431e11785021abe0d?hp=5b6decad7a05ddf01b1192c0c259a44ee84140ea Write a couple XXX todo comments. --- diff --git a/minc b/minc index 346330f..53d926f 100755 --- 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)) {