#!/usr/bin/perl -wT # vim: ft=xml ts=8 sw=4 noet: #---------------------------------------------------------------------- # heading : Administration # description : Mail log file analysis # navigation : 4000 4500 # # $Id: qmailanalog,v 1.6 2003/03/06 17:35:26 lijied Exp $ # # copyright (C) 2002 Mitel Networks Corp. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # #---------------------------------------------------------------------- use strict; use esmith::FormMagick::Panel::qmailanalog; my $panel = esmith::FormMagick::Panel::qmailanalog->new(); # Loosen up the path restriction imposed by esmith::FormMagick $ENV{PATH} = "/bin:/usr/bin:/usr/local/bin"; $panel->display(); __DATA__ <form title="FORM_TITLE" header="/etc/e-smith/web/common/head.tmpl" footer="/etc/e-smith/web/common/foot.tmpl"> <page name="Initial" pre-event="turn_off_buttons"> <description>INITIAL_DESC</description> <field id="report_type" type="select" value="zoverall" options="'qmail-qread' => 'LIST_OUTGOING', 'qmail-qstat' => 'SUMMARIZE_QUEUE', 'zddist' => 'SUCCESSFUL_DELIVERY_DELAY', 'zdeferrals' => 'REASONS_DEFERRAL', 'zfailures' => 'REASONS_FAILURE', 'zoverall' => 'BASIC_STATS', 'zrecipients' => 'RECIP_STATS', 'zrhosts' => 'RECIP_HOSTS', 'zrxdelay' => 'RECIP_ORDERED', 'zsenders' => 'SENDER_STATS', 'zsendmail' => 'SENDMAIL_STYLE', 'zsuccesses' => 'REASONS_SUCCESS', 'zsuids' => 'SENDER_UIDS'" validation="nonblank"> <label>REPORT_TYPE</label> </field> <subroutine src="print_button('GENERATE_REPORT')"/> </page> <page name="Report" pre-event="generateReport"> </page> </form>