#!/usr/local/bin/andy set tmp `mktemp func sigexit { rm -f $tmp } cat >$tmp set addr `mhdr -h from $tmp | sed -E '/.*<.*>$/s/.*<(.*)>$/\1/' set mbox $MAILDIR/$addr/Sent if msmtp -t --read-envelope-from <$tmp { mgenmid | sed 's/^/Message-Id: /' | cat - $tmp | mmime | mdeliver -cv $mbox | xargs chronic mflag -S }