diff options
-rwxr-xr-x | localshowmaildelivered | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/localshowmaildelivered b/localshowmaildelivered new file mode 100755 index 0000000..29d72a4 --- /dev/null +++ b/localshowmaildelivered @@ -0,0 +1,13 @@ +#!/bin/sh +# +# /usr/local/sbin/localshowmaildelivered +# Copyright 2007 Jonas Smedegaard <dr@jones.dk> +# +# $Id: localshowmaildelivered,v 1.1 2007-08-02 03:28:07 jonas Exp $ +# +# List recently delivered emails +# +# TODO: Handle other delivery methods than dovecot +# + +(zcat /var/log/syslog.{7,6,5,4,3,2,1}.gz; cat /var/log/syslog) | egrep -- 'deliver\(('"$1"')\).*saved mail to INBOX$' | sed 's/jawa deliver(awi): msgid=//;s/: saved mail to INBOX//' |