summaryrefslogtreecommitdiff
path: root/localshowuserfromip
diff options
context:
space:
mode:
authorroot <root@homebase.dk>2009-02-07 13:45:27 +0100
committerroot <root@homebase.dk>2009-02-07 13:45:27 +0100
commitff5f01bbea263ccf89ef45727bb25b2639b045a5 (patch)
tree3829cda9680f37249e6f642a484bec8ca7d0bbc5 /localshowuserfromip
parentacfeb3c3e7ce9fe2a25651e2a119bd55b47cdff3 (diff)
localshowuserfromip: Document options in header.
Diffstat (limited to 'localshowuserfromip')
-rwxr-xr-xlocalshowuserfromip13
1 files changed, 12 insertions, 1 deletions
diff --git a/localshowuserfromip b/localshowuserfromip
index cfd5d05..3b773ea 100755
--- a/localshowuserfromip
+++ b/localshowuserfromip
@@ -7,9 +7,20 @@
#
# List recent identifiable users from some IP address
#
+#searchstring="$1"
+#egrep_before="$2"
+#egrep_after="$3"
+#sed_shortline="${4:-$sed_longline}"
+#sed_msgid="$5"
+#sed_qid="$6"
+#sed_username="$7"
+#sed_longline="${8:-s/^\(.\{15\}\) [^:]*: /\1 /}"
+#
+# TODO: Find multiple kinds of entries - like this one too:
+# 9FC17B802: client=084202203102.customer.alfanett.no[84.202.203.102], sasl_method=PLAIN, sasl_username=kr
+#
set -e
-
localshowlogentries "$1" \
'dovecot: .*: Login: .*, rip=(' \
'), lip=' \