I tried to decode an MHTML file with MIME.Message but got
MIME.Message(Stdio.read_file("v1.mht"));
Arrayelement 0 is not a string /home/nilsson/Pike/7.8/lib/modules/MIME.pmod/module.pmod:1183: MIME.Message()->create("Content-Type: multipart/related; start=<op.mhtml.1 238180415787.b2f4904f395b37a5@192.168.0.195>; boundary=----------ghanZ9pgi qEYDh7aC9oLbg\r\nContent-Location: http://beta.%22+%5B35113%5D,UNDEFINED,UNDEFIN ED,UNDEFINED) /home/nilsson/Pike/7.8/lib/modules/MIME.pmod/module.pmod:0: MIME->Message() HilfeInput:1: HilfeInput()->___HilfeWrapper()
This is because the code
params[ lower_case(p[0]) ] = p[2..]*"";
tries to multiply together an array(string|int). Is the right fix here to sprintf("%c") the integeras and then join the file?
Content-Type: multipart/related; start=op.mhtml.1238180415787.b2f4904f395b37a5@192.168.0.195; boundary=----------ghanZ9pgiqEYDh7aC9oLbg
That is not correct MIME, it should be
Content-Type: multipart/related; start="op.mhtml.1238180415787.b2f4904f395b37a5@192.168.0.195"; boundary=----------ghanZ9pgiqEYDh7aC9oLbg
'<', '>' and '@' are tspecials, and the standard says
; Must be in quoted-string, ; to use within parameter values
about tspecials.
pike-devel@lists.lysator.liu.se