summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-16 08:50:38 +0200
committerErich Eckner <git@eckner.net>2018-04-16 08:50:38 +0200
commitbfdda56eef035a6a2c07b41ec690f60d5ec4539c (patch)
tree1a8a84a56be623dd5b3791b840837baef49c78f0
parentd56b733c27187baa8deadff8dad8815b0f4a0638 (diff)
downloadsendmailadvanced-bfdda56eef035a6a2c07b41ec690f60d5ec4539c.tar.xz
sendmailadvanced.in: remove already-set MIME-Version,Content-Transfer-Encoding and Content-Type
-rwxr-xr-xsendmailadvanced.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/sendmailadvanced.in b/sendmailadvanced.in
index 3c12fe8..1813835 100755
--- a/sendmailadvanced.in
+++ b/sendmailadvanced.in
@@ -185,6 +185,13 @@ fi
(
[ -z "${datei}" ] && cat || cat "${datei}"
) | \
+sed '
+ 1,/^$/{
+ /^MIME-Version:/d
+ /^Content-Transfer-Encoding:/d
+ /^Content-Type:/d
+ }
+' | \
(
IFS=''
adressatenString=""