nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] showing application/octet-stream attachments that should be text/plain

2013-03-05 13:44:05
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
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>