blob: dfe986f9c2c4f0630e05993f2a4cef578ba15e8a (
plain)
- #!/bin/sh
- #
- # /usr/local/sbin/localshowmailreceivedfromdomain
- # Copyright 2007-2008 Jonas Smedegaard <dr@jones.dk>
- #
- # $Id: localshowmailreceivedfromdomain,v 1.4 2008-02-03 22:09:07 jonas Exp $
- #
- # List emails recently received from a certain domain
- #
- # TODO: Handle other patterns than AMaViS
- #
- set -e
- localshowlogentries "$1" \
- '@' \
- '> -> ' \
- 's/^\(.\{15\}\) [^)]*) \([^,]*\), [^]]*] \([^ ]*\) -> .*Message-ID: \([^>,]*>\?\).*/\1 \3 (\4) \2/' \
- 's/^.*Message-ID: //;s/: .*$//'
- exit 0
|