Ralph wrote:

> Hi Oliver,
> 
> > I find it happens quite often that I receive an e-mail where someone
> > has attached something that is likely to be plain text (such as a
> > diff) but their mail program has marked it as
> > application/octet-stream.  Viewing such attachments ends up being a
> > bit of a hassle because they need to be stored in a file first. Does
> > anyone know a trick for quickly viewing such attachments?

I have an alias for text content because that is so common:

  alias sl='clear; show -nocheckmime -showproc less'

Or, this profile entry will let mhshow handle it:

  mhshow-show-application/octet-stream: %pless '%F'

> How about using the MHSHOW environment variable to give a one-off
> application/octet-stream handler separate from the normal ones in your
> profile?

I get by with just two handlers for octet-stream, and (ab)use mhn
instead of mhshow for pdf:

  mhn-show-application/octet-stream: %lxpdf '%F'

David

_______________________________________________
Nmh-workers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/nmh-workers

Reply via email to