- 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 <= 0)
- 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;
-
- case 'p':
- count = mutt_num_postponed (0);
- if (!optional)
- {
- snprintf (fmt, sizeof (fmt), "%%%sd", prefix);
- snprintf (buf, buflen, fmt, count);
- }
- else if (!count)
- optional = 0;
- break;