nano /usr/local/vesta/web/templates/admin/list_server_info.html
<div class="l-menu__item <?php if(isset($_GET['que'])) echo 'l-menu__item--active' ?>"><a href="/list/server/?que"><?=__('MAIL QUE')?></a></div>
nano /usr/local/vesta/web/list/server/index.php
// Mail Que Manager
if (isset($_GET['que'])) {
$TAB = 'MAIL QUE';
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_server_info.html');
echo "</pre>";
if (isset($_GET['id'])) {
$id=$_GET['id'];
if ($_GET['do']=='retry') {
exec (VESTA_CMD.'v-list-sys-mail-retry '.$id, $output, $return_var);
}else{
exec (VESTA_CMD.'v-list-sys-mail-view '.$id, $output, $return_var);
}
if ($return_var == 0 ) {
echo "<pre>";
foreach($output as $file) {
echo $file . "\n";
}
echo "</pre>";
}
}else{
exec (VESTA_CMD.'v-list-sys-mail-que', $output, $return_var);
echo "Exim queue status\n";
echo "<div class='mailque'><table>\n";
echo "<tr><th>id</th><th>time</th><th>size</th><th>from</th><th>status</th><th>to</th><th></th></tr>\n";
if ($return_var == 0 ) {
$i=-1;
foreach($output as $file) {
if ($file=='') { $i=-1; echo "<tr>$u1<td>$u2</td><td><a href='?que&id=$id&do=retry'>retry</a></td></tr>\n"; }else{
$i++; $t1=explode(' ', trim($file));
if ($i==0) {
$id=$t1[2]; $time=$t1[0]; $size=$t1[1]; $from=substr($t1[3],1,-1); $frozen=$t1[6];
$u1="<td><a href='?que&id=$id'>$id</a></td><td>$time</td><td>$size</td><td>$from</td><td>$frozen</td>"; $u2='';
}else{
$u2.=trim($file)."<br>\n";
}
}
}
}
echo "</table></div>\n";
}
echo " \n</body>\n</html>\n";
echo "
<style>
.mailque table { }
.mailque table td { margin: 1px; padding: 2px; border: solid 1px #999; }
.mailque ul { list-style: none; display: block; position: relative; border: solid 1px red; overflow: auto; }
.mailque ul li { display: inline-block; float: left; padding: 3px 3px; border: solid 1px blue; margin: 2px; }
.mailque ul li:nth-child()
</style>
";
exit();
}
cp /usr/local/vesta/bin/v-list-sys-mail-status /usr/local/vesta/bin/v-list-sys-mail-que
nano /usr/local/vesta/bin/v-list-sys-mail-que
# Displaying exim queue status
exim -bp | tr -s ' '
cp /usr/local/vesta/bin/v-list-sys-mail-que /usr/local/vesta/bin/v-list-sys-mail-view
nano /usr/local/vesta/bin/v-list-sys-mail-view
# Argument definition
id=$1
# Displaying exim queue status
echo "<h1>header</h1>"
exim -Mvh $id
echo "<h1>body</h1>"
exim -Mvb $id
echo "<h1>log</h1>"
exim -Mvl $id
cp /usr/local/vesta/bin/v-list-sys-mail-view /usr/local/vesta/bin/v-list-sys-mail-retry
nano /usr/local/vesta/bin/v-list-sys-mail-retry
# Argument definition
id=$1
# Displaying exim queue status
exim -M $id
asdf
20 ก.ย. 62