summary refs log tree commit diff
path: root/contrib
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-08-05 20:07:09 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-08-05 20:07:09 +0200
commit7b320737b5f723d4e6c2dd285ad24c1a8d76a75e (patch)
treefc7b98727a118fc0a7fa881a16ae58988e4fd6ca /contrib
parent1d67157f0901bcb8eaeaa3c70c7d9204e3ceb6a1 (diff)
downloadmblaze-7b320737b5f723d4e6c2dd285ad24c1a8d76a75e.tar.gz
mblaze-7b320737b5f723d4e6c2dd285ad24c1a8d76a75e.tar.xz
mblaze-7b320737b5f723d4e6c2dd285ad24c1a8d76a75e.zip
remove mthr, now obsolete
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/mthr46
1 files changed, 0 insertions, 46 deletions
diff --git a/contrib/mthr b/contrib/mthr
deleted file mode 100755
index 2a32539..0000000
--- a/contrib/mthr
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/sh
-# mthr [-a|-s|-p] MSGS... - select thread/subthread/parent of messages
-
-mode=1
-case "$1" in
-	-a) mode=1; shift;;
-	-s) mode=2; shift;;
-	-p) mode=3; shift;;
-esac
-
-mseq : | awk -v mode=$mode '
-BEGIN { split("", parents) }
-NR != FNR { exit }
-{
-	match($0, "^ *")
-	ind = RLENGTH
-}
-mode==1 && ind==0 {
-	if (sel)
-		for (i in thread)
-			print thread[i]
-	split("", thread)
-	sel = 0
-}
-mode==1 { thread[length(thread)+1] = $0 }
-mode==2 && ind <= dep { sel = 0 }
-{
-	for (i in ARGV)
-		if (substr($0, ind+1) == ARGV[i]) {
-			sel = 1
-			dep = ind
-		}
-}
-mode==2 && sel { print }
-mode==3 && sel {
-	if (ind>0)
-		print parents[ind-1]
-	sel = 0
-}
-mode==3 {parents[ind] = $0 }
-END {
-	if (mode==1 && sel)
-		for (i in thread)
-			print thread[i]
-}
-' - $(mseq $@)