- if (Context && Context->path)
- {
- strfcpy (tmp, Context->path, sizeof (tmp));
- mutt_pretty_mailbox (tmp);
- }
- else
- strfcpy (tmp, _("(no mailbox)"), sizeof (tmp));
- snprintf (buf, buflen, fmt, tmp);
- break;
-
- case 'F':
- if (!optional)
- {
- snprintf (fmt, sizeof (fmt), "%%%sd", prefix);
- snprintf (buf, buflen, fmt, Context ? Context->flagged : 0);
- }
- else if (!Context || !Context->flagged)
- optional = 0;
- break;
-
- case 'l':
- if (!optional)
- {
- snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
- mutt_pretty_size (tmp, sizeof (tmp), Context ? Context->size : 0);
- snprintf (buf, buflen, fmt, tmp);
- }
- else if (!Context || !Context->size)
- optional = 0;
- break;
-
- case 'L':
- if (!optional)
- {
- snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
- mutt_pretty_size (tmp, sizeof (tmp), Context ? Context->vsize: 0);
- snprintf (buf, buflen, fmt, tmp);
- }
- else if (!Context || !Context->pattern)
- optional = 0;
- break;
-
- case 'm':
- if (!optional)
- {
- snprintf (fmt, sizeof (fmt), "%%%sd", prefix);
- snprintf (buf, buflen, fmt, Context ? Context->msgcount : 0);
- }
- else if (!Context || !Context->msgcount)
- optional = 0;
- break;
-
- case 'M':
- if (!optional)
- {
- snprintf (fmt, sizeof(fmt), "%%%sd", prefix);
- snprintf (buf, buflen, fmt, Context ? Context->vcount : 0);
- }
- else if (!Context || !Context->pattern)
- optional = 0;
- break;
-
- case 'n':
- if (!optional)
- {
- snprintf (fmt, sizeof (fmt), "%%%sd", prefix);
- snprintf (buf, buflen, fmt, Context ? Context->new : 0);
- }
- else if (!Context || !Context->new)
- optional = 0;
- break;
-
- case 'o':
- if (!optional)
- {
- snprintf (fmt, sizeof (fmt), "%%%sd", prefix);
- snprintf (buf, buflen, fmt, Context ? Context->unread - Context->new : 0);
- }
- else if (!Context || !(Context->unread - Context->new))
- optional = 0;
- break;
+ if (Context && Context->path) {
+ strfcpy (tmp, Context->path, sizeof (tmp));
+ mutt_pretty_mailbox (tmp);
+ }
+ else
+ strfcpy (tmp, _("(no mailbox)"), sizeof (tmp));
+ snprintf (buf, buflen, fmt, tmp);
+ break;
+
+ case 'F':
+ if (!optional) {
+ snprintf (fmt, sizeof (fmt), "%%%sd", prefix);
+ snprintf (buf, buflen, fmt, Context ? Context->flagged : 0);
+ }
+ else if (!Context || !Context->flagged)
+ optional = 0;
+ break;