Bug#411387: senddoc: please add icedove and mutt
Package: openoffice.org-common
Version: 2.0.4.dfsg.2-5
Severity: wishlist
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
1) Now that thunderbird ist called icedove in Debian it should be
possible to use that string in Tools/Options/Internet/E-Mail for the
File->Send functionality.
2) Currently /usr/lib/openoffice/program/senddoc does not support
mutt for File->Send.
The attached patch adds the string "icedove" and a new stanza for
mutt to /usr/lib/openoffice/program/senddoc. Please consider applying
it.
Cheers,
gregor
- -- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'experimental'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18.200702071959
Locale: LANG=C, LC_CTYPE=de_AT@euro (charmap=ISO-8859-15)
Versions of packages openoffice.org-common depends on:
ii dictionaries-common [openoffi 0.70.12 Common utilities for spelling dict
openoffice.org-common recommends no packages.
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFF2HytOzKYnQDzz+QRAiICAKCbfnYhYc9EFg0YjcLjlgRdJRYoxwCeJWyb
PdFAWasPuub7In4NUjyJ7hQ=
=SlAW
-----END PGP SIGNATURE-----
--- senddoc.orig 2007-02-18 15:52:27.000000000 +0100
+++ senddoc 2007-02-18 17:00:53.000000000 +0100
@@ -109,3 +109,3 @@
- mozilla | netscape | thunderbird)
+ mozilla | netscape | thunderbird | icedove)
@@ -204,2 +204,52 @@
+ 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)
Reply to: