- size_t l;
-
- switch (op)
- {
- case 'C':
- if (!optional)
- {
- if (mutt_is_text_part (aptr->content) &&
- mutt_get_body_charset (charset, sizeof (charset), aptr->content))
- mutt_format_s (dest, destlen, prefix, charset);
- else
- mutt_format_s (dest, destlen, prefix, "");
- }
- else if (!mutt_is_text_part (aptr->content) ||
- !mutt_get_body_charset (charset, sizeof (charset), aptr->content))
- optional = 0;
- break;
- case 'c':
- /* XXX */
- if (!optional)
- {
- snprintf (fmt, sizeof (fmt), "%%%sc", prefix);
- snprintf (dest, destlen, fmt, aptr->content->type != TYPETEXT ||
- aptr->content->noconv ? 'n' : 'c');
- }
- else if (aptr->content->type != TYPETEXT || aptr->content->noconv)
- optional = 0;
- break;
- case 'd':
- if(!optional)
- {
- if (aptr->content->description)
- {
- mutt_format_s (dest, destlen, prefix, aptr->content->description);
- break;
- }
- if (mutt_is_message_type(aptr->content->type, aptr->content->subtype) &&
- MsgFmt && aptr->content->hdr)
- {
- char s[SHORT_STRING];
- _mutt_make_string (s, sizeof (s), MsgFmt, NULL, aptr->content->hdr,
- M_FORMAT_FORCESUBJ | M_FORMAT_MAKEPRINT | M_FORMAT_ARROWCURSOR);
- if (*s)
- {
- mutt_format_s (dest, destlen, prefix, s);
- break;
- }
- }
- if (!aptr->content->filename)
- {
- mutt_format_s (dest, destlen, prefix, "<no description>");
- break;
- }
- }
- else if(aptr->content->description ||
- (mutt_is_message_type (aptr->content->type, aptr->content->subtype)
- && MsgFmt && aptr->content->hdr))
+ ssize_t l;
+
+ switch (op) {
+ case 'C':
+ if (!optional) {
+ if (mutt_is_text_part (aptr->content) &&
+ mutt_get_body_charset (charset, sizeof (charset), aptr->content))
+ mutt_format_s (dest, destlen, prefix, charset);
+ else
+ mutt_format_s (dest, destlen, prefix, "");
+ }
+ else if (!mutt_is_text_part (aptr->content) ||
+ !mutt_get_body_charset (charset, sizeof (charset),
+ aptr->content))
+ optional = 0;
+ break;
+ case 'c':
+ /* XXX */
+ if (!optional) {
+ snprintf (fmt, sizeof (fmt), "%%%sc", prefix);
+ snprintf (dest, destlen, fmt, aptr->content->type != TYPETEXT ||
+ aptr->content->noconv ? 'n' : 'c');
+ }
+ else if (aptr->content->type != TYPETEXT || aptr->content->noconv)
+ optional = 0;
+ break;
+ case 'd':
+ if (!optional) {
+ if (aptr->content->description) {
+ mutt_format_s (dest, destlen, prefix, aptr->content->description);