diff options
author | Leah Neukirchen <leah@vuxu.org> | 2021-01-17 23:09:55 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2021-01-17 23:09:55 +0100 |
commit | 318ac214f1de06b0ee69106a36368b2d3b2ac902 (patch) | |
tree | 23ccf6aca7f0aca2811ea444b5379db82991659e /mshow.c | |
parent | 8e0d57425f7f0605ae35894eea25e200e88b330f (diff) | |
download | mblaze-318ac214f1de06b0ee69106a36368b2d3b2ac902.tar.gz mblaze-318ac214f1de06b0ee69106a36368b2d3b2ac902.tar.xz mblaze-318ac214f1de06b0ee69106a36368b2d3b2ac902.zip |
mshow: add "-A all" to render all attachments
Closes #198.
Diffstat (limited to 'mshow.c')
-rw-r--r-- | mshow.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 { |