if (safe_fsync_close(&rc) != 0)
mutt_message ("Trouble adding alias: %s.", strerror(errno));
else
- mutt_message _("Alias added.");
+ mutt_message (_("Alias added."));
}
else
mutt_perror (buf);
return (-1);
}
safe_fclose (&ofp);
- if (safe_fsync_close (&nfp) != 0) {
- mutt_error _("Write fault!");
+ if (safe_fsync_close (&nfp) != 0)
+ {
+ mutt_error (_("Write fault!"));
return (-1);
}
}
}
else if (!state.entrylen)
{
- mutt_error _("No newsgroups match the mask");
+ mutt_error (_("No newsgroups match the mask"));
break;
}
{
if (Context->hdrs[i]->read == 0)
{
- mutt_message _("New mail in this mailbox.");
+ mutt_message (_("New mail in this mailbox."));
if (option (OPTBEEPNEW))
beep ();
if (NewMailCmd)
LIST *ref = CURHDR->env->references;
if (!ref)
{
- mutt_error _("Article has no parent reference.");
+ mutt_error (_("Article has no parent reference."));
break;
}
strfcpy (buf, ref->data, sizeof (buf));
menu->redraw = REDRAW_MOTION_RESYNCH;
}
else
- mutt_error _("Message is not visible in limited view.");
+ mutt_error (_("Message is not visible in limited view."));
}
else
{
if (!CURHDR->env->message_id)
{
- mutt_error _("No Message-Id. Unable to perform operation.");
+ mutt_error (_("No Message-Id. Unable to perform operation."));
break;
}
- mutt_message _("Fetching message headers...");
+ mutt_message (_("Fetching message headers..."));
if (!Context->id_hash)
Context->id_hash = mutt_make_id_hash (Context);
strfcpy (buf, CURHDR->env->message_id, sizeof (buf));
}
else if (rc >= 0)
{
- mutt_error _("No deleted messages found in the thread.");
+ mutt_error (_("No deleted messages found in the thread."));
/* Similar to OP_MAIN_ENTIRE_THREAD, keep displaying the old message, but
update the index */
if (menu->menu == MENU_PAGER)
{
int oldcount = Context->msgcount;
if (Context->magic != MUTT_NOTMUCH) {
- mutt_message _("No virtual folder, aborting.");
+ mutt_message (_("No virtual folder, aborting."));
break;
}
CHECK_MSGCOUNT;
CHECK_VISIBLE;
if (nm_read_entire_thread(Context, CURHDR) < 0) {
- mutt_message _("Failed to read thread, aborting.");
+ mutt_message (_("Failed to read thread, aborting."));
break;
}
if (oldcount < Context->msgcount) {
case OP_MAIN_MODIFY_LABELS_THEN_HIDE:
{
if (Context->magic != MUTT_NOTMUCH) {
- mutt_message _("No virtual folder, aborting.");
+ mutt_message (_("No virtual folder, aborting."));
break;
}
CHECK_MSGCOUNT;
*buf = '\0';
if (mutt_get_field ("Add/remove labels: ", buf, sizeof (buf), MUTT_NM_TAG) || !*buf)
{
- mutt_message _("No label specified, aborting.");
+ mutt_message (_("No label specified, aborting."));
break;
}
if (tag)
else
{
if (nm_modify_message_tags(Context, CURHDR, buf)) {
- mutt_message _("Failed to modify labels, aborting.");
+ mutt_message (_("Failed to modify labels, aborting."));
break;
}
if (op == OP_MAIN_MODIFY_LABELS_THEN_HIDE)
buf[0] = '\0';
if (mutt_get_field ("Query: ", buf, sizeof (buf), MUTT_NM_QUERY) != 0 || !buf[0])
{
- mutt_message _("No query, aborting.");
+ mutt_message (_("No query, aborting."));
break;
}
if (!nm_uri_from_query(Context, buf, sizeof (buf)))
- mutt_message _("Failed to create query, aborting.");
+ mutt_message (_("Failed to create query, aborting."));
else
main_change_folder(menu, op, buf, sizeof (buf), &oldcount, &index_hint, 0);
break;
if ((Sort & SORT_MASK) != SORT_THREADS)
{
- mutt_error _("Threading is not enabled.");
+ mutt_error (_("Threading is not enabled."));
break;
}
collapse_all (menu, 1);
mutt_message ("%d label%s changed.", rc, rc == 1 ? "" : "s");
}
else {
- mutt_message _("No labels changed.");
+ mutt_message (_("No labels changed."));
}
break;
else
/* L10N: This error is printed if <mark-message> cannot find a
Message-ID for the currently selected message in the index. */
- mutt_error _("No message ID to macro.");
+ mutt_error (_("No message ID to macro."));
break;
case OP_RECALL_MESSAGE:
#ifdef USE_FMEMOPEN
s->fpout = open_memstream (&temp, &tempsize);
if (!s->fpout) {
- mutt_error _("Unable to open memory stream!");
+ mutt_error (_("Unable to open memory stream!"));
dprint (1, (debugfile, "Can't open memory stream.\n"));
return -1;
}
if (!(mutt_bit_isset(idata->capabilities,IMAP4)
||mutt_bit_isset(idata->capabilities,IMAP4REV1)))
{
- mutt_error _("This IMAP server is ancient. NeoMutt does not work with it.");
+ mutt_error (_("This IMAP server is ancient. NeoMutt does not work with it."));
mutt_sleep (2); /* pause a moment to let the user see the error */
return -1;
release_db(data);
if (ctx->msgcount == data->oldmsgcount)
- mutt_message _("No more messages in the thread.");
+ mutt_message (_("No more messages in the thread."));
data->oldmsgcount = 0;
dprint(1, (debugfile, "nm: reading entire-thread messages... done [rc=%d, count=%d]\n",
return nm_uri_from_query(ctx, buf, bufsz);
}
-void nm_query_window_reset()
+void nm_query_window_reset(void)
{
dprint(2, (debugfile, "nm_query_window_reset ()\n"));
NotmuchQueryWindowCurrentPosition = 0;
}
-void nm_query_window_backward()
+void nm_query_window_backward(void)
{
NotmuchQueryWindowCurrentPosition += 1;
dprint(2, (debugfile, "nm_query_window_backward (%d)\n", NotmuchQueryWindowCurrentPosition));
}
-void nm_query_window_forward()
+void nm_query_window_forward(void)
{
if (NotmuchQueryWindowCurrentPosition != 0)
NotmuchQueryWindowCurrentPosition -= 1;
void nm_setup_windowed_query(char *buf, size_t bufsz);
char *nm_uri_from_windowed_query(CONTEXT *ctx, char *buf, size_t bufsz, char *timebase, int duration);
-void nm_query_window_reset();
-void nm_query_window_backward();
-void nm_query_window_forward();
+void nm_query_window_reset(void);
+void nm_query_window_backward(void);
+void nm_query_window_forward(void);
int nm_query_window_check_timebase(char *timebase);
void nm_longrun_init(CONTEXT *cxt, int writable);
#ifdef USE_NNTP
if (magic == MUTT_NNTP)
{
- mutt_error _("Can't save message to news server.");
+ mutt_error (_("Can't save message to news server."));
return 0;
}
#endif
}
nserv->newgroups_time = t;
- mutt_message _("Loading list of groups from cache...");
+ mutt_message (_("Loading list of groups from cache..."));
while (fgets (buf, sizeof (buf), fp))
nntp_add_group (buf, nserv);
nntp_add_group (NULL, NULL);
if (!server || !*server)
{
- mutt_error _("No news server defined!");
+ mutt_error (_("No news server defined!"));
mutt_sleep (2);
return NULL;
}
static int nntp_connect_error (NNTP_SERVER *nserv)
{
nserv->status = NNTP_NONE;
- mutt_error _("Server closed connection!");
+ mutt_error (_("Server closed connection!"));
mutt_sleep (2);
return -1;
}
mutt_socket_close (conn);
nserv->status = NNTP_BYE;
- mutt_error _("Server doesn't support reader mode.");
+ mutt_error (_("Server doesn't support reader mode."));
mutt_sleep (2);
return -1;
}
{
if (!a)
{
- mutt_error _("No authenticators available");
+ mutt_error (_("No authenticators available"));
mutt_sleep (2);
break;
}
conn->account.flags = flags;
if (conn->fd < 0)
{
- mutt_error _("Server closed connection!");
+ mutt_error (_("Server closed connection!"));
mutt_sleep (2);
}
else
else if (nserv->hasCAPABILITIES)
{
mutt_socket_close (conn);
- mutt_error _("Could not switch to reader mode.");
+ mutt_error (_("Could not switch to reader mode."));
mutt_sleep (2);
return -1;
}
nserv->use_tls = 0;
nserv->status = NNTP_NONE;
mutt_socket_close (nserv->conn);
- mutt_error _("Could not negotiate TLS connection");
+ mutt_error (_("Could not negotiate TLS connection"));
mutt_sleep (2);
return -1;
}
if (cap > 0)
{
mutt_socket_close (conn);
- mutt_error _("Could not switch to reader mode.");
+ mutt_error (_("Could not switch to reader mode."));
mutt_sleep (2);
return -1;
}
!nntp_data->deleted)
{
if (!ctx->quiet)
- mutt_message _("Fetching list of articles...");
+ mutt_message (_("Fetching list of articles..."));
if (nntp_data->nserv->hasLISTGROUPrange)
snprintf (buf, sizeof (buf), "LISTGROUP %s %d-%d\r\n", nntp_data->group,
first, last);
if (nserv->check_time + NewsPollTimeout > now)
return 0;
- mutt_message _("Checking for new messages...");
+ mutt_message (_("Checking for new messages..."));
if (nntp_newsrc_parse (nserv) < 0)
return -1;
/* check subscribed newsgroups for new articles */
if (option (OPTSHOWNEWNEWS))
{
- mutt_message _("Checking for new messages...");
+ mutt_message (_("Checking for new messages..."));
for (i = 0; i < nserv->groups_num; i++)
{
NNTP_DATA *nntp_data = nserv->groups_list[i];
if (mutt_strncmp ("500", buf, 3))
mutt_error ("XPAT: %s", buf);
else
- mutt_error _("Unable to find child articles because server does not support XPAT command.");
+ mutt_error (_("Unable to find child articles because server does not support XPAT command."));
}
return -1;
}
if (h && (h->read == 0))
{
- mutt_message _("New mail in this mailbox.");
+ mutt_message (_("New mail in this mailbox."));
do_new_mail = 1;
break;
}
mutt_message ("%d label%s changed.", rc, rc == 1 ? "" : "s");
}
else {
- mutt_message _("No labels changed.");
+ mutt_message (_("No labels changed."));
}
break;
if (Context->magic == MUTT_NNTP)
{
mutt_flushinp ();
- mutt_error _("Can't delete attachment from news server.");
+ mutt_error (_("Can't delete attachment from news server."));
break;
}
#endif
if ((flags & SENDLISTREPLY) && !env->to)
{
- mutt_error _("No mailing lists found!");
+ mutt_error (_("No mailing lists found!"));
return (-1);
}
/* abort */
#ifdef USE_NNTP
if (flags & SENDNEWS)
- mutt_message _("Article not posted.");
+ mutt_message (_("Article not posted."));
else
#endif
mutt_message _("Mail not sent.");
#ifdef USE_NNTP
if ((flags & SENDNEWS) && !msg->env->subject)
{
- mutt_error _("No subject specified.");
+ mutt_error (_("No subject specified."));
goto main_loop;
}
if ((flags & SENDNEWS) && !msg->env->newsgroups)
{
- mutt_error _("No newsgroup specified.");
+ mutt_error (_("No newsgroup specified."));
goto main_loop;
}
#endif
/* if the abort is automatic, print an error message */
if (quadoption (OPT_ATTACH) == MUTT_YES)
{
- mutt_error _("Message contains text matching \"$attach_keyword\". Not sending.");
+ mutt_error (_("Message contains text matching \"$attach_keyword\". Not sending."));
}
goto main_loop;
}
if (!parent)
{
- mutt_error _("Parent message is not available.");
+ mutt_error (_("Parent message is not available."));
return (-1);
}
if (!VISIBLE (parent, ctx))
{
if (find_root)
- mutt_error _("Root message is not visible in this limited view.");
+ mutt_error (_("Root message is not visible in this limited view."));
else
- mutt_error _("Parent message is not visible in this limited view.");
+ mutt_error (_("Parent message is not visible in this limited view."));
return (-1);
}
return (parent->virtual);