home
·
contact
·
privacy
projects
/
config
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f4d5791
)
Fix simplemail script newlines-dropping issue.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 8 Oct 2015 20:53:38 +0000
(22:53 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 8 Oct 2015 20:53:38 +0000
(22:53 +0200)
bin/simplemail.sh
patch
|
blob
|
history
diff --git
a/bin/simplemail.sh
b/bin/simplemail.sh
index 6cbc5528d984fd5aa0607a9a61d1c2537b452f2b..af0eb1a9d4886bb7bd4e5e25274f2b98adfb58b5 100755
(executable)
--- a/
bin/simplemail.sh
+++ b/
bin/simplemail.sh
@@
-2,8
+2,8
@@
#
# This mails to user plom the message in the file named by the first parameter,
# decoded with the first line as subject and everything below the second line
#
# This mails to user plom the message in the file named by the first parameter,
# decoded with the first line as subject and everything below the second line
-# as the message body.
The subject line MUST NOT contain '"' double quotes.
+# as the message body.
subject=`head -1 $1`
subject=`head -1 $1`
-body=`tail -n +
2
$1`
-echo
$body
| mutt -s "$subject" plom
+body=`tail -n +
3
$1`
+echo
"$body"
| mutt -s "$subject" plom