summaryrefslogtreecommitdiff
path: root/sendmailadvanced/sendmailadvanced
diff options
context:
space:
mode:
Diffstat (limited to 'sendmailadvanced/sendmailadvanced')
-rw-r--r--sendmailadvanced/sendmailadvanced49
1 files changed, 0 insertions, 49 deletions
diff --git a/sendmailadvanced/sendmailadvanced b/sendmailadvanced/sendmailadvanced
deleted file mode 100644
index 7b5e7fe5..00000000
--- a/sendmailadvanced/sendmailadvanced
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/bash
-
-MAILER="cantfind"
-
-for executable in sendmail msmtp
-do
- for prefix in /usr/bin /usr/sbin /bin /sbin
- do
- [ "${MAILER}" == "cantfind" ] && [ -x ${prefix}/${executable} ] && MAILER="${prefix}/${executable}"
- done
-done
-
-if [ "${MAILER}" == "cantfind" ]
-then
- >&2 echo "ERROR: Can't find suitable mailer."
- exit 1
-fi
-
-(
- . /etc/sendmailadvanced.conf
-
- tos=""
- while read s
- do
- echo "${s}"
- if [ "${s:0:3}" == "To:" ] || [ "${s:0:3}" == "Cc:" ]
- then
- tos="${tos} ${s:4}"
- fi
- if [ "${s:0:8}" == "Subject:" ]
- then
- break
- fi
- done
- hashcash -b ${hashcash_bits} -Xm ${tos}
- while read s
- do
- echo "${s}"
- if [ "${s}" == "" ]
- then
- break
- fi
- done
- (
- body_header_hook $@
- cat
- body_footer_hook $@
- ) | gpg -e -a -s -r ${gpg_recipient}
-) | ${MAILER} -t