From 318ac214f1de06b0ee69106a36368b2d3b2ac902 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sun, 17 Jan 2021 23:09:55 +0100 Subject: mshow: add "-A all" to render all attachments Closes #198. --- mshow.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mshow.c') diff --git a/mshow.c b/mshow.c index 8d70120..f66e7b2 100644 --- a/mshow.c +++ b/mshow.c @@ -316,9 +316,10 @@ nofilter: } printf("\n"); } else if (strncmp(ct, "multipart/alternative", 21) == 0) { - choose_alternative(msg, depth); - - r = MIME_PRUNE; + if (strcmp(Aflag, "all") != 0) { + choose_alternative(msg, depth); + r = MIME_PRUNE; + } // else default blaze822_mime_walk action } else if (strncmp(ct, "multipart/", 10) == 0) { ; // default blaze822_mime_walk action } else { -- cgit 1.4.1