Package: qmailanalog
Version: 0.70-1
Severity: grave
Justification: renders package unusable


The binaries
(/usr/bin/zsenders /usr/bin/zsuccesses /usr/bin/zdeferrals
/usr/bin/zfailures /usr/bin/zrecipients) and possibly some
of the other binaries included with the qmailanalog package are
practicly unusuable.
The problem is rooted at a "gnu sort" program passed over a pipe
in the scripts.
Whenever invoked any of the scripts generate errors like:
"sort: open failed: +2: No such file or directory"
The solution is pretty easy each of the affected files need to
be opened with text editor and to be changed.

The whole issue is also well explained on a forum you can read
further about the problem here:
http://forum.qmailrocks.org/showthread.php?t=4835

Herein I include the content of the fixed shell scripts one by one:
/usr/bin/zsenders

#!/bin/sh
# WARNING: This file was auto-generated. Do not edit!
echo 'Senders

One line per sender. Information on each line:
* mess is the number of messages sent by this sender.
* bytes is the number of bytes sent by this sender.
* sbytes is the number of bytes successfully received from this sender.
* rbytes is the number of bytes from this sender, weighted by recipient.
* recips is the number of recipients (success plus failure).
* tries is the number of delivery attempts (success, failure, deferral).
* xdelay is the total xdelay incurred by this sender.
'
( echo mess bytes sbytes rbytes recips tries xdelay sender
/usr/bin/senders | sort -n -k 7 ) | /usr/bin/columnt

# ----

/usr/bin/zsuccesses

#!/bin/sh
# WARNING: This file was auto-generated. Do not edit!
echo 'Reasons for success

One line per reason for successful delivery. Information on each line:
* del is the number of deliveries that ended for this reason.
* xdelay is the total xdelay on those deliveries.
'
( echo del xdelay reason
/usr/bin/successes | sort -k 3 ) | /usr/bin/columnt | tr _ ' '

# ----

/usr/bin/zdeferrals

#!/bin/sh
# WARNING: This file was auto-generated. Do not edit!
echo 'Reasons for deferral

One line per reason for deferral. Information on each line:
* del is the number of deliveries that ended for this reason.
* xdelay is the total xdelay on those deliveries.
'
( echo del xdelay reason
/usr/bin/deferrals | sort -k 3 ) | /usr/bin/columnt | tr _ ' '

# ----

/usr/bin/zfailures

#!/bin/sh
# WARNING: This file was auto-generated. Do not edit!
echo 'Reasons for failure

One line per reason for delivery failure. Information on each line:
* del is the number of deliveries that ended for this reason.
* xdelay is the total xdelay on those deliveries.
'
( echo del xdelay reason
/usr/bin/failures | sort -k 3 ) | /usr/bin/columnt | tr _ ' '

# ----

/usr/bin/zrecipients

#!/bin/sh
# WARNING: This file was auto-generated. Do not edit!
echo 'Recipients

One line per recipient. Information on each line:
* sbytes is the number of bytes successfully delivered to this
* recipient.
* mess is the number of messages sent to this recipient (success plus
* failure).
* tries is the number of delivery attempts (success, failure, deferral).
* xdelay is the total xdelay incurred by this recipient.
'
( echo sbytes mess tries xdelay recipient
/usr/bin/recipients | sort -k 5 ) | /usr/bin/columnt

# ----

As you can see what is changed in the above scripts is the parameters
for the "gnu sort" binary. After the change the listed binaries work
as expected and show qmail statistics.


Kindest Regards,
Georgi Georgiev (a.k.a. hip0)
http://www.pc-freak.net/

-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages qmailanalog depends on:
ii  libc6                       2.7-18lenny2 GNU C Library: Shared libraries

qmailanalog recommends no packages.

qmailanalog suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to