nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] One-line Summaries of Parts of Emails.

2016-10-07 09:05:32
Ralph wrote:

Regarding the

    [ part 2 - application/postscript - foo.ps ]

that appears when viewing an email, has any consideration been given to
looking up a `summary' command for the MIME type/subtype, falling back
to type, in the same vein as mhshow-show-* profile entries?

I get this for one example:

    [ part 2 - application/pdf - Statement.pdf  4.4KB (suppressed) ]

But then, I'm using nmh 1.6 :-)

There's quite a bit of metadata that could be shown for images, PDFs,
DSC'd PostScript, etc., if the user chooses to start throwing the bytes
at interpreters.  Perhaps a -[no]summary would be needed so he can block
them all simply.

I'd block them all simply, just to avoid waiting for interpreters.

And this works:

    mhstore -nov -part 2 -o - | pdfinfo -

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>