From 13aa25dd1963b140307f5950d12513e6daf5e4f7 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 2 Aug 2007 03:28:07 +0000 Subject: Add new script localshowmaildelivered. --- localshowmaildelivered | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 localshowmaildelivered (limited to 'localshowmaildelivered') 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 +# +# $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//' -- cgit v1.2.3