Server IP : 195.201.23.43 / Your IP : 18.191.239.71 Web Server : Apache System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64 User : kdecoratie ( 1041) PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/qmailadmin/ |
Upload File : |
#!/usr/bin/perl # view_queue.cgi # Display some message from the mail queue require './qmail-lib.pl'; &ReadParse(); $mail = &read_mail_file($in{'file'}); &parse_mail($mail); $desc = &text('qview_desc', "<tt>$in{'file'}</tt>"); &ui_print_header($desc, $text{'qview_title'}, ""); print "<form action=delete_queue.cgi method=post>\n"; print "<input type=hidden name=file value='$in{'file'}'>\n"; print "<table width=100% border=1>\n"; print "<tr> <td $tb><b>$text{'qview_headers'}</b></td> </tr>\n"; print "<tr> <td $cb><table width=100%>\n"; print "<tr> <td><b>$text{'queue_from'}</b></td> ", "<td>",&html_escape($mail->{'header'}->{'from'}),"</td> </tr>\n"; print "<tr> <td><b>$text{'queue_to'}</b></td> ", "<td>",&html_escape($mail->{'header'}->{'to'}),"</td> </tr>\n"; print "<tr> <td><b>$text{'queue_cc'}</b></td> ", "<td>",&html_escape($mail->{'header'}->{'cc'}),"</td> </tr>\n" if ($mail->{'header'}->{'cc'}); print "<tr> <td><b>$text{'queue_date'}</b></td> ", "<td>",&html_escape($mail->{'header'}->{'date'}),"</td> </tr>\n"; print "<tr> <td><b>$text{'queue_subject'}</b></td> ", "<td>",&html_escape($mail->{'header'}->{'subject'}),"</td> </tr>\n"; print "</table></td></tr></table><p>\n"; # Find body attachment @attach = @{$mail->{'attach'}}; foreach $a (@attach) { if ($a->{'type'} eq 'text/plain') { $body = $a; last; } } if ($body) { print "<table width=100% border=1><tr><td $cb><pre>\n"; foreach $l (&wrap_lines($body->{'data'}, $config{'wrap_width'})) { print &link_urls_and_escape($l),"\n"; } print "</pre></td></tr></table><p>\n"; } # Display other attachments @attach = grep { $_ ne $body } @attach; @attach = grep { !$_->{'attach'} } @attach; if (@attach) { print "<table width=100% border=1>\n"; print "<tr> <td $tb><b>$text{'qview_attach'}</b></td> </tr>\n"; print "<tr> <td $cb>\n"; foreach $a (@attach) { push(@titles, $a->{'filename'} ? $a->{'filename'} : $a->{'type'}); push(@links, "detach_queue.cgi?file=$in{'file'}&attach=$a->{'idx'}"); push(@icons, "images/boxes.gif"); } &icons_table(\@links, \@titles, \@icons, 8); print "</td></tr></table><p>\n"; } print "<input type=submit value='$text{'delete'}'></form>\n"; &ui_print_footer("list_queue.cgi", $text{'queue_return'});Private