qmailanalog/qmailanalog-0.70-sortfix.patch

64 lines
2.9 KiB
Diff
Executable File

diff -Nur ../qmailanalog-0.70.orig//zdeferrals.sh ./zdeferrals.sh
--- ../qmailanalog-0.70.orig//zdeferrals.sh 1998-08-30 21:39:27.000000000 +0000
+++ ./zdeferrals.sh 2010-08-06 17:43:00.000000000 +0000
@@ -5,4 +5,4 @@
* xdelay is the total xdelay on those deliveries.
'
( echo del xdelay reason
-HOME/bin/deferrals | sort +2 ) | HOME/bin/columnt | tr _ ' '
+HOME/bin/deferrals | sort -k 3 ) | HOME/bin/columnt | tr _ ' '
diff -Nur ../qmailanalog-0.70.orig//zfailures.sh ./zfailures.sh
--- ../qmailanalog-0.70.orig//zfailures.sh 1998-08-30 21:39:27.000000000 +0000
+++ ./zfailures.sh 2010-08-06 17:43:08.000000000 +0000
@@ -5,4 +5,4 @@
* xdelay is the total xdelay on those deliveries.
'
( echo del xdelay reason
-HOME/bin/failures | sort +2 ) | HOME/bin/columnt | tr _ ' '
+HOME/bin/failures | sort -k 3 ) | HOME/bin/columnt | tr _ ' '
diff -Nur ../qmailanalog-0.70.orig//zrecipients.sh ./zrecipients.sh
--- ../qmailanalog-0.70.orig//zrecipients.sh 1998-08-30 21:39:27.000000000 +0000
+++ ./zrecipients.sh 2010-08-06 17:43:20.000000000 +0000
@@ -7,4 +7,4 @@
* xdelay is the total xdelay incurred by this recipient.
'
( echo sbytes mess tries xdelay recipient
-HOME/bin/recipients | sort +4 ) | HOME/bin/columnt
+HOME/bin/recipients | sort -k 5 ) | HOME/bin/columnt
diff -Nur ../qmailanalog-0.70.orig//zrhosts.sh ./zrhosts.sh
--- ../qmailanalog-0.70.orig//zrhosts.sh 1998-08-30 21:39:27.000000000 +0000
+++ ./zrhosts.sh 2010-08-06 17:44:27.000000000 +0000
@@ -7,4 +7,4 @@
* xdelay is the total xdelay incurred by this host.
'
( echo sbytes mess tries xdelay host
-HOME/bin/rhosts | sort +4 ) | HOME/bin/columnt
+HOME/bin/rhosts | sort -k 5 ) | HOME/bin/columnt
diff -Nur ../qmailanalog-0.70.orig//zsenders.sh ./zsenders.sh
--- ../qmailanalog-0.70.orig//zsenders.sh 1998-08-30 21:39:27.000000000 +0000
+++ ./zsenders.sh 2010-08-06 17:43:54.000000000 +0000
@@ -10,4 +10,4 @@
* xdelay is the total xdelay incurred by this sender.
'
( echo mess bytes sbytes rbytes recips tries xdelay sender
-HOME/bin/senders | sort -n +7 ) | HOME/bin/columnt
+HOME/bin/senders | sort -n -k 8 ) | HOME/bin/columnt
diff -Nur ../qmailanalog-0.70.orig//zsuccesses.sh ./zsuccesses.sh
--- ../qmailanalog-0.70.orig//zsuccesses.sh 1998-08-30 21:39:27.000000000 +0000
+++ ./zsuccesses.sh 2010-08-06 17:42:37.000000000 +0000
@@ -5,4 +5,4 @@
* xdelay is the total xdelay on those deliveries.
'
( echo del xdelay reason
-HOME/bin/successes | sort +2 ) | HOME/bin/columnt | tr _ ' '
+HOME/bin/successes | sort -k 3 ) | HOME/bin/columnt | tr _ ' '
diff -Nur ../qmailanalog-0.70.orig//zsuids.sh ./zsuids.sh
--- ../qmailanalog-0.70.orig//zsuids.sh 1998-08-30 21:39:27.000000000 +0000
+++ ./zsuids.sh 2010-08-06 17:44:16.000000000 +0000
@@ -10,4 +10,4 @@
* xdelay is the total xdelay incurred by this uid.
'
( echo mess bytes sbytes rbytes recips tries xdelay uid
-HOME/bin/suids | sort -n +7 ) | HOME/bin/columnt
+HOME/bin/suids | sort -n -k 8 ) | HOME/bin/columnt