#!/bin/sh set -eu PROCMAIL=$HOME/.etc/mailfilter/procmail/procmailrc if [ -z "$1" ]; then cat | exec $PROCMAIL else exec $PROCMAIL < "$1" fi