shithub: riscv

Download patch

ref: 3e0e920c22f22c91753244c230bd0f4bd427cfd7
parent: 3f25f69718756a7a5f64acc35ac9478b5eb9cefd
author: cinap_lenrek <[email protected]>
date: Fri Nov 30 10:13:23 EST 2012

upas/ned: fix M command

--- a/sys/src/cmd/upas/ned/nedmail.c
+++ b/sys/src/cmd/upas/ned/nedmail.c
@@ -1877,8 +1877,6 @@
 		return nil;
 	}
 
-	av[ai++] = "-8";
-
 	av[ai++] = "-t";
 	if(m->parent == &top)
 		av[ai++] = "message/rfc822";
@@ -1891,6 +1889,8 @@
 
 	if(strchr(c->av[0], 'M') == nil)
 		av[ai++] = "-n";
+	else
+		av[ai++] = "-8";
 
 	for(i = 1; i < c->an && ai < nelem(av)-1; i++)
 		av[ai++] = c->av[i];