eg. mozilla -compose "to=,subject=Attached File,attachment=file:///tmp/file.xxx" is not handled by mozilla-launcher. This is particularly a problem with trying to integrate with OpenOffice for example, and you want to be able to send an attachment from the "File -> Send" menu. Reproducible: Always Steps to Reproduce: 1. mozilla -compose "subject=test" Actual Results: Launches a blank "compose" window, plus a browser window with "http://subject=test/". Expected Results: Open a compose window with the subject being "test". Using mozilla-launcher 1.5 and mozilla 1.7 I made this patch to make mozilla-launcher work with OpenOffice... NOTE: I hard-coded the subject in this case - didn't know how to pass a subject from OpenOffice... suggest just leaving it as "composeMessage,$2)". Also, I needed to use "Mozilla 1.x (Option 2)" for the "default e-mail program" in OO to make this work. --- mozilla-launcher 2004-07-09 13:08:05.000000000 +0000 +++ mozilla 2004-07-09 13:21:32.000000000 +0000 @@ -41,7 +41,9 @@ while [[ $# -gt 0 ]]; do case $1 in -mail) try_running 'xfeDoCommand(openInbox)' ;; - -compose) try_running 'xfeDoCommand(composeMessage)' ;; + -compose) + xfecmd="xfeDoCommand(composeMessage,subject=Attached File,$2)" + try_running "$xfecmd" && shift ;; -remote) try_running "$2" && shift ;; esac [[ $? -eq 0 ]] && { shift; continue; } @@ -207,10 +209,10 @@ height|width|CreateProfile|P|UILocale|contentLocale|edit|chrome) args=("${args[@]}" "$1" "$2") shift 2 ;; - mail|compose) + mail) mozargs=("${mozargs[@]}" "$1") shift 1 ;; - remote) + remote|compose) mozargs=("${mozargs[@]}" "$1" "$2") shift 2 ;; *)
Thanks! Committed to cvs, will be in the next mozilla-launcher release. Sorry for the long waiting period on this one. http://www.gentoo.org/cgi-bin/viewcvs.cgi/mozilla-launcher/mozilla-launcher?r1=1.24&r2=1.25&root=gentoo-src
Fixed in mozilla-launcher-1.26