summaryrefslogtreecommitdiff
path: root/shell/source/unix/misc/senddoc.sh
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2007-06-19 15:12:15 +0000
committerKurt Zenker <kz@openoffice.org>2007-06-19 15:12:15 +0000
commit7a6f4e502a73780082151da93774256adfce0aba (patch)
tree4fc071025e022c858c0aef43c381d7ce81d67ad2 /shell/source/unix/misc/senddoc.sh
parenta8226e719245350d5b775060e814d4c5854d7c7e (diff)
INTEGRATION: CWS obr05 (1.11.22); FILE MERGED
2007/03/29 07:23:50 obr 1.11.22.1: #i74689# applied provided patch (with one minor correction)
Diffstat (limited to 'shell/source/unix/misc/senddoc.sh')
-rw-r--r--shell/source/unix/misc/senddoc.sh52
1 files changed, 51 insertions, 1 deletions
diff --git a/shell/source/unix/misc/senddoc.sh b/shell/source/unix/misc/senddoc.sh
index 16882934f6fa..b6f5c7fcbc93 100644
--- a/shell/source/unix/misc/senddoc.sh
+++ b/shell/source/unix/misc/senddoc.sh
@@ -94,7 +94,7 @@ fi
# autodetect mail client from executable name
case `basename "$MAILER" | sed 's/-.*$//'` in
- mozilla | netscape | seamonkey | thunderbird)
+ iceape | mozilla | netscape | seamonkey | icedove | thunderbird)
while [ "$1" != "" ]; do
case $1 in
@@ -189,6 +189,56 @@ case `basename "$MAILER" | sed 's/-.*$//'` in
${ATTACH:+--attach} ${ATTACH:+"${ATTACH}"} ${TO:+"${TO}"}
;;
+ mutt)
+
+ while [ "$1" != "" ]; do
+ case $1 in
+ --from)
+ FROM="$2"
+ shift
+ ;;
+ --to)
+ TO="${TO:-}${TO:+,}$2"
+ shift
+ ;;
+ --cc)
+ CC="${CC:-}${CC:+,}$2"
+ shift
+ ;;
+ --bcc)
+ BCC="${BCC:-}${BCC:+,}$2"
+ shift
+ ;;
+ --subject)
+ SUBJECT="$2"
+ shift
+ ;;
+ --body)
+ BODY=$(mktemp -q -t $(basename $0).mutt.XXXXXXXX)
+ echo "$2" > $BODY
+ shift
+ ;;
+ --attach)
+ ATTACH="$2"
+ shift
+ ;;
+ *)
+ ;;
+ esac
+ shift;
+ done
+
+ x-terminal-emulator -e ${MAILER} \
+ ${FROM:+-e} ${FROM:+"set from=\"${FROM}\""} \
+ ${CC:+-c} ${CC:+"${CC}"} \
+ ${BCC:+-b} ${BCC:+"${BCC}"} \
+ ${SUBJECT:+-s} ${SUBJECT:+"${SUBJECT}"} \
+ ${BODY:+-i} ${BODY:+"${BODY}"} \
+ ${ATTACH:+-a} ${ATTACH:+"${ATTACH}"} \
+ ${TO:+"${TO}"} &
+ rm -f $BODY
+ ;;
+
evolution)
while [ "$1" != "" ]; do