Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56556 - mozilla-launcher -compose should handle additional options
Summary: mozilla-launcher -compose should handle additional options
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-07-09 10:55 UTC by Bob Blanchard
Modified: 2005-03-16 05:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Blanchard 2004-07-09 10:55:29 UTC
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 ;;
         *)
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2005-03-15 06:19:23 UTC
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
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2005-03-16 05:36:09 UTC
Fixed in mozilla-launcher-1.26