--- mailutils-1.0.orig/comsat/action.c 2005-08-29 03:21:54.000000000 -0700 +++ mailutils-1.0/comsat/action.c 2006-08-25 15:39:41.000000000 -0700 @@ -369,7 +369,24 @@ } else if (strcmp (argv[0], "echo") == 0) { - action_echo (tty, cr, argv[1]); + int newline = 1; + if (argc > 1) + { + int c = 1; + if (strcmp (argv[1], "-n") == 0) + { + newline = 0; + c++; + } + for (; c < argc; c++) + { + action_echo (tty, cr, argv[c]); + if (c < argc - 1) + action_echo (tty, cr, " "); + } + } + if (newline) + action_echo (tty, cr, "\n"); nact++; } else if (strcmp (argv[0], "exec") == 0)