]> diplodocus.org Git - minc/commitdiff
(store_message): Fix usage of the system function so that the shell
authorepg <>
Sun, 29 Dec 2002 03:53:00 +0000 (03:53 +0000)
committerepg <>
Sun, 29 Dec 2002 03:53:00 +0000 (03:53 +0000)
won't be invoked.

minc

diff --git a/minc b/minc
index 4ad09e5498ebf1e5fce6978b107982105d98fa3d..a14345736f5e8cce70f3b786f682001416d46675 100755 (executable)
--- a/minc
+++ b/minc
@@ -445,7 +445,8 @@ sub store_message {
         # messages and then have a failure before marking some (or
         # all).
         if ($mhfolder ne 'SPAM') {
-            $status = system("mark +$mhfolder $msgnum -sequence unseen -add");
+            $status = system('mark', "+$mhfolder", "$msgnum", '-sequence',
+                             'unseen', '-add');
             if (not WIFEXITED($status)) {
                 err(&EX_OSERR, "Failed to run mark");
             } elsif (WEXITSTATUS($status) != 0) {