projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add some gcc hint defines
[mmh]
/
uip
/
sendfiles.sh
diff --git
a/uip/sendfiles.sh
b/uip/sendfiles.sh
index
40d8f72
..
5e4cd67
100755
(executable)
--- a/
uip/sendfiles.sh
+++ b/
uip/sendfiles.sh
@@
-3,7
+3,7
@@
# Send multiples files non-interactively
# adjust if needed
# Send multiples files non-interactively
# adjust if needed
-attachment_header='Attach'
+attachment_header=`mhparam Attachment-Header`
if [ $# -lt 3 ]; then
if [ $# -lt 3 ]; then
@@
-23,13
+23,12
@@
Files: $*
!
draft=`mktemp /tmp/sendfiles.XXXXXX`
!
draft=`mktemp /tmp/sendfiles.XXXXXX`
-trap 'rm -f "$draft"' 1 2 3 15
-cat >"$draft" <<!
-To: $rcpt
-Subject: $subject
-!
+trap 'rm -f "$draft"' 1 2 15
+
+anno "$draft" -component To -text "$rcpt" -nodate
+anno "$draft" -component Subject -text "$subject" -nodate
for i in "$@" ; do
for i in "$@" ; do
- echo "$attachment_header: $i" >>"$draft"
+ anno "$draft" -component "$attachment_header" -text "$i" -nodate
done
send "$draft"
done
send "$draft"