- echo "$dir/mail/$entry<br/>";
-//
-// if ($handle = opendir($dir . '/mail')) {
-// while (false !== ($entry = readdir($handle))) {
-// if ($entry == "." || $entry == ".." || !preg_match('/\.html$/', $entry)) {
-// continue;
-// }
-//
-// $ret[] = array(
-// 'file' => $entry,
-// 'content' => $this->convertStyle("$dir/mail/$entry")
-// );
-// }
-//
-// closedir($handle);
-// }
+
+ if ($handle = opendir($dir . '/mail')) {
+ while (false !== ($entry = readdir($handle))) {
+ if ($entry == "." || $entry == ".." || !preg_match('/\.html$/', $entry)) {
+ continue;
+ }
+
+ $path = "$dir/mail/$entry";
+
+ $ret[] = array(
+ 'file' => $entry,
+ 'content' => $this->convertStyle($base, $path, false)
+ );
+ }
+
+ closedir($handle);
+ }