From 9aa034524acfaaa1a9881ef7b6cadd788b551ebe Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Wed, 23 Sep 2015 13:15:31 +0200 Subject: [PATCH] use anno and mhparam in sendfiles --- uip/sendfiles.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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" -- 1.7.10.4