Hey Hymie! You're right to suspect that the answers lean toward “No,” but
there’s nuance worth unpacking. Let’s break it down:

---

🧩 1. Overriding mhshow-show-<type> from the command line

Unfortunately, there’s no direct command-line switch to override the
mhshow-show-<type> entries in .mh_profile for a one-off invocation. These
entries define how mhshow handles specific MIME types (like image/jpeg,
text/html, etc.), and they’re baked into the profile system.

However, there are a couple of workarounds:

- Use a wrapper script: You could temporarily point mhshow-show-<type> to a
custom script that conditionally invokes your desired viewer based on
environment variables or arguments.
- Temporarily modify .mhprofile: Not elegant, but you could script a
reversible change to .mhprofile before and after running mhshow.

Sadly, no -showproc-style override exists for MIME handlers like it does
for show.

---

🖼️ 2. Processing all parts at once

Yes! There’s a switch for that:

- Use -concat to concatenate all parts into one pager session. This is the
default behavior, but if you’ve set -noconcat in your profile, you can
override it on the command line.
- If you want to ensure all parts are shown, avoid using -part or -type
unless you're filtering.
- For embedded images in HTML, make sure your viewer (e.g., w3m, lynx, or
firefox) supports rendering inline resources.

So if you want to see everything together, something like:

`bash
mhshow -concat
`

...should do the trick, assuming your MIME handlers are set up to launch
viewers that can handle multiple parts gracefully.


On Tue, Sep 9, 2025, 7:20 AM <[email protected]> wrote:

> I think the answer is "No" to both, but ...
>
> 1. Is there a command-line option to override the mhshow-show-blah/blah
> entries in .mh_profile ?  It seems like overkill to edit the file every
> time I have a one-off need for a specific program.
>
> 2. Is there an option to process all of the parts at once, rather than
> one at a time?  Sometimes it's nice, when an email contains 2 images,
> or an HTML file with embedded (not linked) images, to see them both
> together.
>
> Thanks.
>
> --hymie!
>
>

Reply via email to