foreach (glob("mailfile/*РОСМЭН*.*") as $filename) {
$size = round(@filesize($filename) / 1048576, 2);
$filedata = date ("d.m.y", filectime($filename));
$str = preg_replace('/mailfile\/Subject\(.*\)_/i', '', $filename);
echo '<tr>
<td>'.$filedata.'</td>
<td>'.$str.'</td>
<td>'.$size.' Мб</td>
<td><a href="mailfile/'.$str.'">Скачать</a></td>
</tr>';
}