From: Neale P. <ne...@wo...> - 2011-02-22 14:23:12
|
No thanks. So I guess I'll be picking up maintainership then? -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. johnw <joh...@gm...> wrote: Ilohamail is dead. Use roundcube instead. -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. Neale Pickett <ne...@wo...> 說: I had to patch Ilohamail for it to work with Debian Stable, which gave me PHP 5.3. --- mime.inc~ 2004-11-30 00:25:40.000000000 -0600 +++ mime.inc 2011-02-21 17:12:51.000000000 -0600 @@ -84,7 +84,7 @@ $line = str_replace(")(", ") (", $line); $struct = iml_ParseBSString($line); - if ((strcasecmp($struct[0], "message")==0) && (strcasecmp($struct[1], "rfc822")==0)){ + if (is_string($struct[0]) && (strcasecmp($struct[0], "message")==0) && (strcasecmp($struct[1], "rfc822")==0)){ $struct = array($struct); } return $struct; @@ -97,13 +97,13 @@ $pos = strpos($part, "."); $rest = substr($original_part, $pos+1); $part = substr($original_part, 0, $pos); - if ((strcasecmp($a[0], "message")==0) && (strcasecmp($a[1], "rfc822")==0)){ + if (is_string($a[0]) && (strcasecmp($a[0], "message")==0) && (strcasecmp($a[1], "rfc822")==0)){ $a = $a[8]; } //echo "m - part: $original_part current: $part rest: $rest array: ".implode(" ", $a)."<br>\n"; return iml_GetPartArray($a[$part-1], $rest); }else if ($part>0){ - if ((strcasecmp($a[0], "message")==0) && (strcasecmp($a[1], "rfc822")==0)){ + if (is_string($a[0]) && (strcasecmp($a[0], "message")==0) && (strcasecmp($a[1], "rfc822")==0)){ $a = $a[8]; } //echo "s - part: $part rest: $rest array: ".implode(" ", $a)."<br>\n"; @@ -118,7 +118,7 @@ if (is_array($a)){ $parent=iml_GetPartArray($a, $part); - if ((strcasecmp($parent[0], "message")==0) && (strcasecmp($parent[1], "rfc822")==0)){ + if (is_string($parent[0]) && (strcasecmp($parent[0], "message")==0) && (strcasecmp($parent[1], "rfc822")==0)){ $parent = $parent[8]; }_____________________________________________ Index, Search & Analyze Logs and other IT data in Real-Time with Splunk Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. Free Software Download: http://p.sf.net/sfu/splunk-dev2dev_____________________________________________ Ilohamail-devel mailing list Ilo...@li... https://lists.sourceforge.net/lists/listinfo/ilohamail-devel |