Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 56556
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Mozilla Gentoo Team <mozilla@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Bob Blanchard <blabj@dainty.ca>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 56556 depends on: Show dependency tree
Bug 56556 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-07-09 10:55 0000
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 From Aron Griffis (RETIRED) 2005-03-15 06:19:23 0000 -------
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 From Aron Griffis (RETIRED) 2005-03-16 05:36:09 0000 -------
Fixed in mozilla-launcher-1.26

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug