nmh-workers
[Top] [All Lists]

[Nmh-workers] mhshow display bug

2014-04-11 16:50:46
i currently have this in my mh_profile:
 mhshow-charset-iso-8859-1: %s | /usr/bin/iconv -f ISO-8859-1 -t UTF-8 | less

whether i need it currently or not (do i?  has the iconv conversion
been internalized?), it seems like it should still work.

but it seems the %s is being dropped, rather than expanded to
the message displayer command, leaving "| iconv" as the command
to be run.  what i get (with some obvious debugging added) is this:

 $ mhshow
 Date:    Fri, 11 Apr 2014 13:54:08 -0700
 To:      xxxxxx
 From:    xxxxxx
 Subject: xxxxxx
 In-Reply-To: 
<CAKWYJF5KjNu4k8r6u6E6CiHncTMdcGBedMmxq_RxMMs3-YH_RA@mail.gmail.com>

 before parse_display_string(): cp: '%l' buffer: 'ads '  [ "ads " is junk from 
stack -pgf ]
 after parse_display_string(): buffer: ' | /usr/bin/iconv -f ISO-8859-1 -t 
UTF-8 | less'
 part       text/plain                1066
 /bin/sh: 1: /bin/sh: Syntax error: "|" unexpected
 exit 2


the message has:

 Content-Type: text/plain; charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable


i tried to figure this out, for a while, but got lost in
parse_display_string().  sorry.

paul
----------------------
 paul fox, pgf@foxharp.boston.ma.us (arlington, ma, where it's 58.3 degrees)

_______________________________________________
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

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