summaryrefslogtreecommitdiff
path: root/sendmailadvanced.in
diff options
context:
space:
mode:
Diffstat (limited to 'sendmailadvanced.in')
-rwxr-xr-xsendmailadvanced.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/sendmailadvanced.in b/sendmailadvanced.in
index 62ea21e..4afcf05 100755
--- a/sendmailadvanced.in
+++ b/sendmailadvanced.in
@@ -270,9 +270,9 @@ fi
if ${encrypt}; then
boundary=""
while
- echo "${body}" | \
- grep -q "${boundary}"; do
- boundary="$(gen_boundary)"
+ printf '%s\n' "${body}" | \
+ grep -qF "${boundary}"; do
+ boundary=$(gen_boundary)
done
echo 'MIME-Version: 1.0'
@@ -293,8 +293,9 @@ fi
echo 'Content-Disposition: inline; filename="encrypted.asc"'
fi
- echo "${zeile}"
- echo "${body}"
+ printf '%s\n' \
+ "${zeile}" \
+ "${body}"
if ${encrypt}; then
echo ''