]> diplodocus.org Git - minc/commitdiff
(store_message): Splitting the two mark failure cases, i accidentally
authorepg <>
Mon, 2 Sep 2002 01:20:16 +0000 (01:20 +0000)
committerepg <>
Mon, 2 Sep 2002 01:20:16 +0000 (01:20 +0000)
reversed the sense of a test on one.

minc

diff --git a/minc b/minc
index 29a02d7beaebaa32b556b75502525e1e890d499a..87c5e9a70f857d5614a00d0e4078f92fdf8926b8 100755 (executable)
--- a/minc
+++ b/minc
@@ -408,7 +408,7 @@ sub store_message {
             $status = system("mark +$mhfolder $msgnum -sequence unseen -add");
             if (not WIFEXITED($status)) {
                 err(&EX_OSERR, "Failed to run mark");
-            } elsif (WEXITSTATUS($status) == 0) {
+            } elsif (WEXITSTATUS($status) != 0) {
                 errx(&EX_SOFTWARE, "Failed to mark message unseen.");
             }
         }