#!/bin/shset-e
tmp=`mktemp`trap"rm -f $tmp"EXIT
cat>$tmpaddr="`mhdr -h from $tmp | sed -E '/.*<.*>$/s/.*<(.*)>$/\1/'`"mbox="$MAILDIR/$addr/Sent"ifmsmtp-t--read-envelope-from<$tmpthenmgenmid\|sed's/^/Message-Id: /'\|cat-$tmp\|mmime\|mdeliver-cv"$mbox"\|xargschronicmflag-S
fi