Bug#264157: marked as done (Eximstats: average message size)
Debian Bug Tracking System
owner@bugs.debian.org
Fri, 01 Apr 2005 21:33:02 -0800
Your message dated Sat, 2 Apr 2005 07:23:37 +0200
with message-id <20050402052337.GA1886@lefler.int.l21.ma.zugschlus.de>
and subject line [exim] Eximstats average message size
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 7 Aug 2004 11:20:47 +0000
>From gregoa@colgarra.priv.at Sat Aug 07 04:20:47 2004
Return-path: <gregoa@colgarra.priv.at>
Received: from colleen.colgarra.priv.at [82.150.197.85]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1BtPFm-00086j-00; Sat, 07 Aug 2004 04:20:46 -0700
Received: from gregoa by colleen.colgarra.priv.at with local (Exim 4.34)
id 1BtPFi-00065B-Ok; Sat, 07 Aug 2004 13:20:42 +0200
Content-Type: multipart/mixed; boundary="===============1111795970=="
MIME-Version: 1.0
From: gregor herrmann <gregor.herrmann@comodo.priv.at>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Eximstats: average message size
X-Mailer: reportbug 2.63
Date: Sat, 07 Aug 2004 13:20:42 +0200
Message-Id: <E1BtPFi-00065B-Ok@colleen.colgarra.priv.at>
Sender: gregor herrmann <gregoa@colgarra.priv.at>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.5 required=4.0 tests=BAYES_00,HAS_PACKAGE,
HTML_MESSAGE autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level:
This is a multi-part MIME message sent by reportbug.
--===============1111795970==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: exim4-base
Version: 4.34-4
Severity: wishlist
Tags: patch
I thought it would be a nice idea to not only have the count of mails and
the accumulated volume but also the average size of the mails included in
the output of eximstats. I changed the script a bit for local use but only
to show the average values in the HTML output, and there's no additional
section "Top xxx ... by average size" yet which would be nice, too. My
little patch might give you an idea of my thoughts.
Regards,
Gregor
-- Package-specific info:
Exim version 4.34 #1 built 27-Jul-2004 18:08:18
Copyright (c) University of Cambridge 2004
Berkeley DB: Sleepycat Software: Berkeley DB 3.2.9: (May 26, 2004)
Support for: iconv() IPv6 PAM Perl GnuTLS
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch ldap ldapdn ldapm mysql nis nis0 passwd pgsql
Authenticators: cram_md5 plaintext spa
Routers: accept dnslookup ipliteral iplookup manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Contains exiscan-acl patch revision 21 (c) Tom Kistner [http://duncanthrax.net/exiscan/]
Configuration file is /var/lib/exim4/config.autogenerated
# /etc/exim4/update-exim4.conf.conf
#
# Edit this file and /etc/mailname by hand and execute update-exim4.conf
# yourself or use 'dpkg-reconfigure exim4-config'
dc_eximconfig_configtype='internet'
dc_other_hostnames='CONFDIR/domains/domains'
dc_local_interfaces=''
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost=''
CFILEMODE='644'
dc_use_split_config='true'
dc_hide_mailname=''
mailname:colleen.colgarra.priv.at
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.26.20040424
Locale: LANG=C, LC_CTYPE=de_AT@euro
Versions of packages exim4-base depends on:
ii adduser 3.57 Add and remove users and groups
ii cron 3.0pl1-86 management of regular background p
ii debconf [debconf-2.0] 1.4.29 Debian configuration management sy
ii exim4-config [exim4-config- 4.34-4 Debian configuration for exim4
ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an
ii libdb3 3.2.9-20 Berkeley v3 Database Libraries [ru
ii netbase 4.18 Basic TCP/IP networking system
ii passwd 1:4.0.3-30 Change and administer password and
-- debconf information:
exim4/purge_spool: false
* exim4/move_exim3_spool: true
--===============1111795970==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="eximstats.patch"
--- /usr/sbin/eximstats 2004-07-27 18:08:24.000000000 +0200
+++ /usr/local/bin/eximstats_avg 2004-07-03 14:47:48.000000000 +0200
@@ -1011,3 +1011,3 @@
print "<table border=1>\n";
- print "<tr><th>Messages</th><th>Bytes</th><th>\u$text</th>\n";
+ print "<tr><th>Messages</th><th>Bytes</th><th>Average</th><th>\u$text</th>\n";
@@ -1016,3 +1016,3 @@
my $align = ($text !~ /local/i) ? 'right' : 'left';
- $format = "<tr><td align=\"right\">%d</td><td align=\"right\">%s</td><td align=\"$align\" nowrap>%s</td>\n";
+ $format = "<tr><td align=\"right\">%d</td><td align=\"right\">%s</td><td align=\"right\">%s</td><td align=\"$align\" nowrap>%s</td>\n";
}
@@ -1029,3 +1029,3 @@
$htmlkey =~ s/</\<\;/g;
- printf($format, $$m_count{$key}, volume_rounded($$m_data{$key},$$m_data_gigs{$key}), $htmlkey);
+ printf($format, $$m_count{$key}, volume_rounded($$m_data{$key},$$m_data_gigs{$key}), volume_rounded($$m_data{$key}/$$m_count{$key},$$m_data_gigs{$key}), $htmlkey);
}
@@ -1086,3 +1086,3 @@
print "<table border=1>\n";
- print "<tr><th>Messages</th><th>Bytes</th><th>\u$text</th>\n";
+ print "<tr><th>Messages</th><th>Bytes</th><th>Average</th><th>\u$text</th>\n";
}
@@ -1100,3 +1100,3 @@
$htmlkey =~ s/</\<\;/g;
- printf($format, $$m_count{$key}, volume_rounded($$m_data{$key},$$m_data_gigs{$key}), $htmlkey);
+ printf($format, $$m_count{$key}, volume_rounded($$m_data{$key},$$m_data_gigs{$key}), volume_rounded($$m_data{$key}/$$m_count{$key},$$m_data_gigs{$key}), $htmlkey);
}
--===============1111795970==--
---------------------------------------
Received: (at 264157-done) by bugs.debian.org; 2 Apr 2005 05:27:00 +0000
>From mh+debian-packages@zugschlus.de Fri Apr 01 21:27:00 2005
Return-path: <mh+debian-packages@zugschlus.de>
Received: from gluck.debian.org [192.25.206.10]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DHb9w-0002pp-00; Fri, 01 Apr 2005 21:27:00 -0800
Received: from 5301d.unt0.torres.l21.ma.zugschlus.de (torres.int.l21.ma.zugschlus.de) [217.151.83.1] (Debian-exim)
by gluck.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DHb9v-0007BV-00; Fri, 01 Apr 2005 22:26:59 -0700
Received: from lefler.int.l21.ma.zugschlus.de ([192.168.130.38]:52734)
by torres.int.l21.ma.zugschlus.de with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32)
(Exim 4.50)
id 1DHb6g-0005ym-Nq; Sat, 02 Apr 2005 07:23:38 +0200
Received: from mh by lefler.int.l21.ma.zugschlus.de with local (Exim 4.50)
id 1DHb6f-0000VZ-Rj; Sat, 02 Apr 2005 07:23:37 +0200
Date: Sat, 2 Apr 2005 07:23:37 +0200
From: Marc Haber <mh+debian-packages@zugschlus.de>
To: 264157-done@bugs.debian.org
Cc: gregoa@colgarra.priv.at
Subject: Re: [exim] Eximstats average message size
Message-ID: <20050402052337.GA1886@lefler.int.l21.ma.zugschlus.de>
References: <Pine.BSO.4.61.0502071019300.6211@frapo.computurn.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.BSO.4.61.0502071019300.6211@frapo.computurn.co.uk>
User-Agent: Mutt/1.5.8i
Delivered-To: 264157-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
On Mon, Feb 07, 2005 at 10:24:45AM +0000, Steve Campbell wrote:
> I've incorporated your patch and fixed these issues in eximstats-1.36,
> which can be downloaded from www.computurn.com/exim.
... and is part of exim 4.50. Closing this bug.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835