summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-07-09 17:34:11 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-07-09 17:34:11 +0000
commit1815987ab11232cc11a538966be07dc51df00f87 (patch)
treebbaedbfa1301f577cb8bc9a433aa4e3abc6f1da0 /mail
parent9b34ababd275b7b1f9ae76694356fc978043bd3a (diff)
downloadmailutils-1815987ab11232cc11a538966be07dc51df00f87.tar.gz
mailutils-1815987ab11232cc11a538966be07dc51df00f87.tar.bz2
(mail_mainloop): Use "%s" to properly pass command to util_do_command. Remove call to util_escape_percent
Diffstat (limited to 'mail')
-rw-r--r--mail/mail.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/mail/mail.c b/mail/mail.c
index b7466d266..9f76e88bb 100644
--- a/mail/mail.c
+++ b/mail/mail.c
@@ -175,13 +175,13 @@ static struct argp argp = {
};
static const char *mail_capa[] = {
- "common",
- "license",
- "mailbox",
+ "common",
+ "license",
+ "mailbox",
#ifdef WITH_TLS
- "tls",
+ "tls",
#endif
- NULL
+ NULL
};
static char *
@@ -204,7 +204,7 @@ mail_cmdline (void *closure, int cont MU_ARG_UNUSED)
if (ml_got_interrupt ())
{
- util_error(_("Interrupt"));
+ util_error (_("Interrupt"));
continue;
}
@@ -530,9 +530,8 @@ mail_mainloop (char *(*input) (void *, int),
command = buf;
len = strlen (command);
}
- util_escape_percent (&command);
cmd = util_stripwhite (command);
- util_do_command (cmd);
+ util_do_command ("%s", cmd);
#ifdef WITH_READLINE
if (do_history && !(isspace(cmd[0]) || cmd[0] == '#'))
add_history (cmd);

Return to:

Send suggestions and report system problems to the System administrator.