On Tue, 11 Apr 2006 13:55:03 -0400 Adam Montague amontague@siriushosting.com wrote:
If you create a MIME.Message that has an array(string) for one of its headers, then you can't cast it to a string:
Unknown program: `/ (({"test1@siriushosting.com","test2@siriushosting.com"}),"\0") /usr/local/lib/pike/modules/MIME.pmod/module.pmod:1059: MIME.Message()-
__lambda_65759_3_line_1058("to")
Adam
The following appears to fix this, but I am not sure why we're doing a / "\0", so I'm not sure this is the right way to fix it. It also looks rather ugly.
--- module.pmod.orig Fri Aug 26 07:49:13 2005 +++ module.pmod Tue Apr 11 16:21:24 2006 @@ -1056,7 +1056,7 @@
return map( indices(headers), lambda(string hname){ - return map(headers[hname]/"\0", + return map(Array.flatten(map(arrayp(headers[hname]) ? headers[hname] : ({headers[hname]}), `/, "\0")), lambda(string header,string hname) { return hname+": "+header; },