3 # Send multiples files non-interactively
6 attachment_header=`mhparam Attachment-Header`
10 echo 'usage: sendfiles RECIPIENT SUBJECT FILES...' 1>&2
25 draft=`mktemp /tmp/sendfiles.XXXXXX`
26 trap 'rm -f "$draft"' 1 2 15
28 anno "$draft" -component To -text "$rcpt" -nodate
29 anno "$draft" -component Subject -text "$subject" -nodate
31 anno "$draft" -component "$attachment_header" -text "$i" -nodate