- /* FALLS THROUGH TO 'f' */
- case 'f':
- if(!optional)
- {
- if (aptr->content->filename && *aptr->content->filename == '/')
- {
- char path[_POSIX_PATH_MAX];
-
- strfcpy (path, aptr->content->filename, sizeof (path));
- mutt_pretty_mailbox (path);
- mutt_format_s (dest, destlen, prefix, path);
- }
- else
- mutt_format_s (dest, destlen, prefix, NONULL (aptr->content->filename));
- }
- else if(!aptr->content->filename)
- optional = 0;
- break;
- case 'D':
- if(!optional)
- snprintf (dest, destlen, "%c", aptr->content->deleted ? 'D' : ' ');
- else if(!aptr->content->deleted)
- optional = 0;
- break;
- case 'e':
- if(!optional)
- mutt_format_s (dest, destlen, prefix,
- ENCODING (aptr->content->encoding));
- break;
- case 'I':
- if (!optional)
- {
- snprintf (dest, destlen, "%c",
- (aptr->content->disposition == DISPINLINE) ? 'I' : 'A');
- }
- break;
- case 'm':
- if(!optional)
- mutt_format_s (dest, destlen, prefix, TYPE (aptr->content));
- break;
- case 'M':
- if(!optional)
- mutt_format_s (dest, destlen, prefix, aptr->content->subtype);
- else if(!aptr->content->subtype)
- optional = 0;
- break;
- case 'n':
- if(!optional)
- {
- snprintf (fmt, sizeof (fmt), "%%%sd", prefix);
- snprintf (dest, destlen, fmt, aptr->num + 1);