- case 'd':
- if (!optional)
- {
- snprintf (fmt, sizeof (fmt), "%%%sd", prefix);
- snprintf (buf, buflen, fmt, Context ? Context->deleted : 0);
- }
- else if (!Context || !Context->deleted)
- optional = 0;
- break;
+ case 'B':
+ snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
+#ifdef USE_COMPRESSED
+ if (Context && Context->compressinfo && Context->realpath) {
+ if ((p = strrchr (Context->realpath, '/')))
+ strfcpy (tmp, p + 1, sizeof (tmp));
+ else
+ strfcpy (tmp, Context->realpath, sizeof (tmp));
+ }
+ else
+#endif
+ if (Context && Context->path) {
+ if ((p = strrchr (Context->path, '/')))
+ strfcpy (tmp, p + 1, sizeof (tmp));
+ else
+ strfcpy (tmp, Context->path, sizeof (tmp));
+ }
+ else
+ strfcpy (tmp, _("no mailbox"), sizeof (tmp));
+ snprintf (buf, buflen, fmt, tmp);
+ break;