diff options
author | Jonas Smedegaard <dr@jones.dk> | 2009-08-07 14:48:39 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2009-08-07 14:48:39 +0200 |
commit | 490950773cdfa4f75b54c41326828decb692cc25 (patch) | |
tree | c8629323941af6620cff6dc352d84993bb1d5525 /localshowuserfromip | |
parent | d20501f75f1cade4f02fe96855b2e39b98683d83 (diff) | |
parent | ff5f01bbea263ccf89ef45727bb25b2639b045a5 (diff) |
Merge jonas@coreander:/srv/git/source.jones.dk/sbin
Diffstat (limited to 'localshowuserfromip')
-rwxr-xr-x | localshowuserfromip | 13 |
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=' \ |