nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] scan doesn't appear to understand language encodings

2017-06-02 09:46:25
On Fri, 02 Jun 2017 09:19:25 -0400, Paul Fox said:
ken wrote:
 > scan can't decode the body of a message; you get the raw text output.
 > Which is why you see the beginning of the MIME multipart marker if your
 > message is a multipart.  Why can't scan do that?  Because no one made it
 > do that.  SHOULD it do that?  Yes, ...

i'm not sure i agree.  frankly, the first-line snippet that scan
provides instead of a subject is hardly useful enough to be worth it.
i'd be just as happy if scan <<Missing Subject>> or somesuch.

The tail end of my usual scan format:

%(decode{subject})\
%(void{content-type})\
%<(match multipart)\
%?(match text/html)\
%|%<{body} <<%{body}%>\
%>

In other words, if the outermost MIME time is multipart/* or text/html,
don't bother with using %body to display the first 10-50 chars of the
body (depending how long the  Subject: line was).  That deals with 99% of
the problem.

Attachment: pgp4T36hcrzmv.pgp
Description: PGP signature

_______________________________________________
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>