to mutt_message and mutt_error.
case OP_BROWSER_TELL:
if(state.entrylen)
- mutt_message(state.entry[menu->current].name);
+ mutt_message("%s", state.entry[menu->current].name);
break;
#ifdef USE_IMAP
pc = buf + SEQLEN;
SKIPWS (pc);
pc = imap_next_word (pc);
- mutt_error (pc);
+ mutt_error ("%s", pc);
sleep (1);
return -1;
/* server shut down our connection */
s += 3;
SKIPWS (s);
- mutt_error (s);
+ mutt_error ("%s", s);
idata->status = IMAP_BYE;
if (idata->state == IMAP_SELECTED)
mx_fastclose_mailbox (idata->selected_ctx);
else if (option (OPTIMAPSERVERNOISE) && (mutt_strncasecmp ("NO", s, 2) == 0))
{
/* Display the warning message from the server */
- mutt_error (s+3);
+ mutt_error ("%s", s+3);
sleep (1);
}
else
char *s;
s = imap_next_word (buf); /* skip seq */
s = imap_next_word (s); /* Skip response */
- mutt_error (s);
+ mutt_error ("%s", s);
sleep (1);
return -1;
}
char *s;
s = imap_next_word (buf); /* skip seq */
s = imap_next_word (s); /* Skip response */
- mutt_error (s);
+ mutt_error ("%s", s);
idata->state = IMAP_AUTHENTICATED;
sleep (1);
return -1;
/* if we have a message set, then let's delete */
if (deleted)
{
- snprintf (tmp, sizeof (tmp), _("Marking %d messages deleted..."),
- deleted);
- mutt_message (tmp);
+ mutt_message (_("Marking %d messages deleted..."), deleted);
snprintf (tmp, sizeof (tmp), "STORE %s +FLAGS.SILENT (\\Deleted)", buf);
if (imap_exec (buf, sizeof (buf), CTX_DATA, tmp, 0) != 0)
/* continue, let regular store try before giving up */
{
if (ctx->hdrs[n]->changed)
{
- snprintf (buf, sizeof (buf), _("Saving message status flags... [%d/%d]"),
- n+1, ctx->msgcount);
- mutt_message (buf);
+ mutt_message (_("Saving message status flags... [%d/%d]"), n+1, ctx->msgcount);
flags[0] = '\0';
h0 = h;
for (msgno = msgbegin; msgno <= msgend ; msgno++)
{
- snprintf (buf, sizeof (buf), _("Fetching message headers... [%d/%d]"),
- msgno + 1, msgend + 1);
- mutt_message (buf);
+ mutt_message (_("Fetching message headers... [%d/%d]"),
+ msgno + 1, msgend + 1);
if (msgno + 1 > fetchlast)
{
pc = buf + SEQLEN;
SKIPWS (pc);
pc = imap_next_word (pc);
- mutt_error (pc);
+ mutt_error ("%s", pc);
sleep (1);
fclose (fp);
return (-1);
pc = buf + SEQLEN;
SKIPWS (pc);
pc = imap_next_word (pc);
- mutt_error (pc);
+ mutt_error ("%s", pc);
sleep (1);
return (-1);
}
{
if (conn->up)
{
- snprintf (buf, sizeof (buf), _("Closing connection to %s..."),
- conn->mx.host);
- mutt_message (buf);
-
+ mutt_message (_("Closing connection to %s..."),
+ conn->mx.host);
+
imap_make_sequence (seq, sizeof (seq));
snprintf (buf, sizeof (buf), "%s LOGOUT\r\n", seq);
case OP_VIEW_ID:
- mutt_message (KeyTable[menu->current]->addr);
+ mutt_message ("%s", KeyTable[menu->current]->addr);
break;
case OP_GENERIC_SELECT_ENTRY:
if (mutt_strncmp (buffer, "+OK", 3) != 0)
{
mutt_remove_trailing_ws (buffer);
- mutt_error (buffer);
+ mutt_error ("%s", buffer);
goto finish;
}
if (mutt_strncmp (buffer, "+OK", 3) != 0)
{
mutt_remove_trailing_ws (buffer);
- mutt_error (buffer);
+ mutt_error ("%s", buffer);
goto finish;
}
safe_free((void **) &PopPass); /* void the given password */
mutt_remove_trailing_ws (buffer);
- mutt_error (buffer[0] ? buffer : _("Server closed connection!"));
+ mutt_error ("%s", buffer[0] ? buffer : _("Server closed connection!"));
goto finish;
}
if (mutt_strncmp (buffer, "+OK", 3) != 0)
{
mutt_remove_trailing_ws (buffer);
- mutt_error (buffer);
+ mutt_error ("%s", buffer);
goto finish;
}
if (msgs - last)
delanswer = query_quadoption(OPT_POPDELETE, _("Delete messages from server?"));
- snprintf (msgbuf, sizeof (msgbuf),
- msgs > 1 ? _("Reading new messages (%d bytes)...") :
+ mutt_message (msgs > 1 ? _("Reading new messages (%d bytes)...") :
_("Reading new message (%d bytes)..."), bytes);
- mutt_message (msgbuf);
for (i = last + 1 ; i <= msgs ; i++)
{
if (mutt_strncmp (buffer, "+OK", 3) != 0)
{
mutt_remove_trailing_ws (buffer);
- mutt_error (buffer);
+ mutt_error ("%s", buffer);
break;
}
{
err = 1;
mutt_remove_trailing_ws (buffer);
- mutt_error (buffer);
+ mutt_error ("%s", buffer);
break;
}
}
+
+ if ( msgs > 1)
+ mutt_message (_("%s [%d of %d messages read]"), msgbuf, i, msgs);
+ else
+ mutt_message (_("%s [%d message read]"), msgbuf, msgs);
- if ( msgs > 1)
- mutt_message (_("%s [%d of %d messages read]"), msgbuf, i, msgs);
- else
- mutt_message (_("%s [%d message read]"), msgbuf, msgs);
-
}
if (msg)
if (mutt_wait_filter (thepid))
{
dprint (1, (debugfile, "Error: %s\n", msg));
- if (!quiet)
- mutt_error (msg);
+ if (!quiet) mutt_error ("%s", msg);
}
else
{
if (!quiet)
- mutt_message (msg);
+ mutt_message ("%s", msg);
}
return first;
if (chain->cl && chain->ch[chain->cl - 1] &&
(type2_list[chain->ch[chain->cl-1]]->caps & MIX_CAP_MIDDLEMAN))
{
- char buff[SHORT_STRING];
-
- snprintf (buff, sizeof (buff), _("Error: %s can't be used as the final remailer of a chain."),
+ mutt_error ( _("Error: %s can't be used as the final remailer of a chain."),
type2_list[chain->ch[chain->cl - 1]]->shortname);
- mutt_error (buff);
}
else
{
c_redraw = 1;
}
else
- {
- char buff[SHORT_STRING];
- snprintf (buff, sizeof (buff), _("Mixmaster chains are limited to %d elements."),
+ mutt_error ( _("Mixmaster chains are limited to %d elements."),
MAXMIXES);
- mutt_error (buff);
- }
break;
}