From: Philipp Takacs Date: Wed, 23 Sep 2015 11:15:31 +0000 (+0200) Subject: use anno and mhparam in sendfiles X-Git-Tag: mmh-0.2-RC1~14^2~4 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=9aa034524acfaaa1a9881ef7b6cadd788b551ebe;ds=sidebyside use anno and mhparam in sendfiles --- diff --git a/uip/sendfiles.sh b/uip/sendfiles.sh index 40d8f72..66fc7ec 100755 --- a/uip/sendfiles.sh +++ b/uip/sendfiles.sh @@ -3,7 +3,7 @@ # Send multiples files non-interactively # adjust if needed -attachment_header='Attach' +attachment_header=`mhparam Attachment-Header` if [ $# -lt 3 ]; then @@ -24,12 +24,11 @@ Files: $* draft=`mktemp /tmp/sendfiles.XXXXXX` trap 'rm -f "$draft"' 1 2 3 15 -cat >"$draft" <>"$draft" + anno "$draft" -component "$attachment_header" -text "$i" -nodate done send "$draft"