summaryrefslogtreecommitdiff
path: root/localshowmaildelivered
diff options
context:
space:
mode:
Diffstat (limited to 'localshowmaildelivered')
-rwxr-xr-xlocalshowmaildelivered7
1 files changed, 3 insertions, 4 deletions
diff --git a/localshowmaildelivered b/localshowmaildelivered
index 5dea331..bab037d 100755
--- a/localshowmaildelivered
+++ b/localshowmaildelivered
@@ -3,14 +3,13 @@
# /usr/local/sbin/localshowmaildelivered
# Copyright 2007-2008 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localshowmaildelivered,v 1.7 2008-02-03 22:09:07 jonas Exp $
+# $Id: localshowmaildelivered,v 1.8 2008-03-19 19:41:45 jonas Exp $
#
# List recently delivered emails
#
pattern="${pattern:-user_dovecot}"
mailname="$(cat /etc/mailname | head -n 1)"
-sed_longline='s/^\(.\{15\}\) [^:]*: /\1 /'
case $pattern in
user_dovecot)
@@ -34,12 +33,12 @@ case $pattern in
localshowlogentries "$1" \
'[^[:xdigit:]]' \
'[^[:xdigit:]]' \
- "$sed_longline" \
+ 's/^\(.\{15\}\) [^:]*: /\1 /' \
'' \
's/^[^:]*: //;s/: .*$//'
;;
*)
- echo >&2 "ERROR: unknwon pattern \"$pattern\""
+ echo >&2 "ERROR: unknown pattern \"$pattern\""
exit 1
;;
esac