]> granicus.if.org Git - mutt/commitdiff
Should be slightly better than a mixmaster patch suggested by Stefan
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 15 Nov 2001 18:53:23 +0000 (18:53 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 15 Nov 2001 18:53:23 +0000 (18:53 +0000)
Karrmann <sk@mathematik.uni-ulm.de>.  (UNTESTED!)

remailer.c

index e89f482f94853dd7cd884fee70cbe92e72538239..490ecc5349f50811098bfe0286180b5c3276c571 100644 (file)
@@ -686,7 +686,7 @@ void mix_make_chain (LIST **chainp, int *redraw)
       if ((j = chain->ch[i]))
        t = type2_list[j]->shortname;
       else
-       t = "0";
+       t = "*";
       
       *chainp = mutt_add_list (*chainp, t);
     }
@@ -748,15 +748,18 @@ int mix_send_message (LIST *chain, const char *tempfile)
 {
   char cmd[HUGE_STRING];
   char tmp[HUGE_STRING];
+  char cd_quoted[STRING];
   int i;
 
-  snprintf (cmd, sizeof (cmd), "cat %s | %s -m -l", tempfile, Mixmaster);
-  for (; chain; chain = chain->next)
+  snprintf (cmd, sizeof (cmd), "cat %s | %s -m ", tempfile, Mixmaster);
+  
+  for (i = 0; chain; chain = chain->next, i = 1)
   {
     strfcpy (tmp, cmd, sizeof (tmp));
-    snprintf (cmd, sizeof (cmd), "%s %s", tmp, (char *) chain->data);
+    mutt_quote_filename (cd_quoted, sizeof (cd_quoted), (char *) chain->data);
+    snprintf (cmd, sizeof (cmd), "%s%s%s", tmp, i ? "," : " -l ", cd_quoted);
   }
-  
+
   if (!option (OPTNOCURSES))
     mutt_endwin (NULL);