From: epg <> Date: Sun, 29 Dec 2002 03:53:00 +0000 (+0000) Subject: (store_message): Fix usage of the system function so that the shell X-Git-Url: https://diplodocus.org/git/minc/commitdiff_plain/f520c82f15ffe0017aacbfba63af1e038162fefa?hp=1dcc14238db6b9fa66812dd9fa0690b390596687 (store_message): Fix usage of the system function so that the shell won't be invoked. --- diff --git a/minc b/minc index 4ad09e5..a143457 100755 --- 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) {