summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorAriel Constenla-Haile <arielch@apache.org>2012-06-27 20:52:14 +0000
committerEike Rathke <erack@redhat.com>2013-03-18 17:49:18 +0100
commit2f7bbb82deb6192a90e351bd962cfb57245e2df8 (patch)
tree10ca740a4367fc00787eada1c04323ec1299f7e0 /shell
parent30844869ccc3109a747f6ec8e94789af39688f6b (diff)
i82660 - SimpleCommandMail: fix options passed to Kmail
Change-Id: I20f3411787b3965aaaad118d1ba6582acaa25f70
Diffstat (limited to 'shell')
-rw-r--r--shell/source/unix/misc/senddoc.sh17
1 files changed, 13 insertions, 4 deletions
diff --git a/shell/source/unix/misc/senddoc.sh b/shell/source/unix/misc/senddoc.sh
index 2002c3d974f5..be096c8a734d 100644
--- a/shell/source/unix/misc/senddoc.sh
+++ b/shell/source/unix/misc/senddoc.sh
@@ -160,8 +160,12 @@ case `basename "$MAILER" | sed 's/-.*$//'` in
BODY="$2"
shift
;;
+ --from)
+ FROM="$2"
+ shift
+ ;;
--attach)
- ATTACH="$2"
+ ATTACH="${ATTACH:-}${ATTACH:+ }--attach "`echo "file://$2" | ${URI_ENCODE}`
shift
;;
*)
@@ -170,9 +174,14 @@ case `basename "$MAILER" | sed 's/-.*$//'` in
shift;
done
- ${MAILER} --composer ${CC:+--cc} ${CC:+"${CC}"} ${BCC:+--bcc} ${BCC:+"${BCC}"} \
- ${SUBJECT:+--subject} ${SUBJECT:+"${SUBJECT}"} ${BODY:+--body} ${BODY:+"${BODY}"} \
- ${ATTACH:+--attach} ${ATTACH:+"${ATTACH}"} ${TO:+"${TO}"}
+ ${MAILER} --composer \
+ ${CC:+--cc} ${CC:+"${CC}"} \
+ ${BCC:+--bcc} ${BCC:+"${BCC}"} \
+ ${SUBJECT:+--subject} ${SUBJECT:+"${SUBJECT}"} \
+ ${BODY:+--body} ${BODY:+"${BODY}"} \
+ ${FROM:+--header} ${FROM:+"From: ${FROM}"} \
+ ${ATTACH:+${ATTACH}} \
+ ${TO:+"${TO}"}
;;
mutt)