nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] showing application/octet-stream attachments that shou


From: David Levine
Subject: Re: [Nmh-workers] showing application/octet-stream attachments that should be text/plain
Date: Tue, 05 Mar 2013 14:25:53 -0500

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]