int alternating, nowalternate, result;
struct multipart *m = (struct multipart *) ct->c_ctparams;
struct part *part;
+ int any_part_ok;
CT p;
alternating = 0;
*/
result = alternate ? NOTOK : OK;
+ any_part_ok = 0;
for (part = m->mp_parts; part; part = part->mp_next) {
p = part->mp_part;
if (part_ok (p, 1) && type_ok (p, 1)) {
int inneresult;
+ any_part_ok = 1;
+
inneresult = show_switch (p, nowalternate, concatsw, textonly,
inlineonly, fmt);
switch (inneresult) {
}
}
- if (alternating && !part) {
+ if (alternating && !part && any_part_ok) {
if (!alternate)
content_error (NULL, ct, "don't know how to display any of the contents");
result = NOTOK;