summaryrefslogtreecommitdiff
path: root/localshowmaildelivered
blob: 29d72a4e249218eb0aefb47bfa6f1b7b2f0c898e (plain)
  1. #!/bin/sh
  2. #
  3. # /usr/local/sbin/localshowmaildelivered
  4. # Copyright 2007 Jonas Smedegaard <dr@jones.dk>
  5. #
  6. # $Id: localshowmaildelivered,v 1.1 2007-08-02 03:28:07 jonas Exp $
  7. #
  8. # List recently delivered emails
  9. #
  10. # TODO: Handle other delivery methods than dovecot
  11. #
  12. (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//'