/* copy the temp mailbox back into place starting at the first
* change/deleted message
*/
- mutt_message _("Committing changes...");
+ if (!ctx->quiet)
+ mutt_message _("Committing changes...");
i = mutt_copy_stream (fp, ctx->fp);
if (ferror (ctx->fp))
/* silent operations */
ctx->quiet = 1;
- mutt_message _("Reopening mailbox...");
+ if (!ctx->quiet)
+ mutt_message _("Reopening mailbox...");
/* our heuristics require the old mailbox to be unsorted */
if (Sort != SORT_ORDER)
if (move_messages)
{
- mutt_message (_("Moving read messages to %s..."), mbox);
+ if (!ctx->quiet)
+ mutt_message (_("Moving read messages to %s..."), mbox);
#ifdef USE_IMAP
/* try to use server-side copy first */
}
else if (!ctx->changed && ctx->deleted == 0)
{
- mutt_message _("Mailbox is unchanged.");
+ if (!ctx->quiet)
+ mutt_message _("Mailbox is unchanged.");
mx_fastclose_mailbox (ctx);
return 0;
}
}
}
- if (move_messages)
- mutt_message (_("%d kept, %d moved, %d deleted."),
- ctx->msgcount - ctx->deleted, read_msgs, ctx->deleted);
- else
- mutt_message (_("%d kept, %d deleted."),
- ctx->msgcount - ctx->deleted, ctx->deleted);
+ if (!ctx->quiet)
+ {
+ if (move_messages)
+ mutt_message (_("%d kept, %d moved, %d deleted."),
+ ctx->msgcount - ctx->deleted, read_msgs, ctx->deleted);
+ else
+ mutt_message (_("%d kept, %d deleted."),
+ ctx->msgcount - ctx->deleted, ctx->deleted);
+ }
if (ctx->msgcount == ctx->deleted &&
(ctx->magic == M_MMDF || ctx->magic == M_MBOX) &&
if (!ctx->changed && !ctx->deleted)
{
- mutt_message _("Mailbox is unchanged.");
+ if (!ctx->quiet)
+ mutt_message _("Mailbox is unchanged.");
return (0);
}
{
#ifdef USE_IMAP
if (ctx->magic == M_IMAP && !purge)
- mutt_message _("Mailbox checkpointed.");
+ {
+ if (!ctx->quiet)
+ mutt_message _("Mailbox checkpointed.");
+ }
else
#endif
- mutt_message (_("%d kept, %d deleted."), msgcount - deleted,
- deleted);
+ {
+ if (!ctx->quiet)
+ mutt_message (_("%d kept, %d deleted."), msgcount - deleted,
+ deleted);
+ }
mutt_sleep (0);