Commit 1c0ee638 1c0ee63834fc729e6ed49fcfa6965d8a7cc88f87 by Sergey Poznyakoff

Mail: bugfixes.

* mail/file.c: Use "headers" instead of non-standard "z."
* mail/mail.c: Avoid % interpretation in
the argument to util_cache_command.
* mail/util.c (_run_and_free): Avoid % interpretation in
the argument to util_do_command.
1 parent 9b0dee5f
......@@ -121,7 +121,7 @@ mail_file (int argc, char **argv)
if (mailvar_get (NULL, "header", mailvar_type_boolean, 0) == 0)
{
util_do_command ("summary");
util_do_command ("z.");
util_do_command ("headers");
}
return 0;
}
......
......@@ -137,7 +137,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
break;
case 'E':
util_cache_command (&command_list, arg);
util_cache_command (&command_list, "%s", arg);
break;
case 'F':
......@@ -499,7 +499,7 @@ main (int argc, char **argv)
if (mailvar_get (NULL, "header", mailvar_type_boolean, 0) == 0)
{
util_do_command ("summary");
util_do_command ("z.");
util_do_command ("headers");
}
mailvar_get (&prompt, "prompt", mailvar_type_string, 0);
......
......@@ -1068,7 +1068,7 @@ util_cache_command (mu_list_t *list, const char *fmt, ...)
static int
_run_and_free (void *item, void *data)
{
util_do_command ((char *) item);
util_do_command ("%s", (char *) item);
free (item);
return 0;
}
......