Closed Bug 98696 Opened 25 years ago Closed 19 years ago

mozilla.exe -compose "attachment=file://c:/filename.ext" does not work when already running instance

Categories

(MailNews Core :: Composition, defect)

x86
Windows NT
defect
Not set
major

Tracking

(Not tracked)

RESOLVED WORKSFORME
mozilla1.1alpha

People

(Reporter: jogi, Assigned: bugzilla)

Details

If you have already started a Mozilla and want to execute the composer a second time (e.g. from a 3rd party app) with additional parameter you are only able to open the composer but the additional parameter has been lost.
Status: UNCONFIRMED → NEW
Ever confirmed: true
reporter, Can you please explain with steps to reproduce this clearly. And state the build id too.
1. Open a shell 2. go to the Moz dir 3. enter this: mozilla.exe -compose "attachment=file://c:/autoexec.bat" (Windows system) 4. enter the command line under 3. again BUG: The second compose window does not contain the file attachment (you can also use another file it won't work). This happens in each build of Mozilla 0.9.x and Netscape 6.x
Summary: mozilla.exe -compose "attach=file://c:/filename.ext" does not work when already running instance → mozilla.exe -compose "attachment=file://c:/filename.ext" does not work when already running instance
Confirmed in 0.9.6. For instance, in windows, if you issue the following command "C:\Program Files\mozilla.org\Mozilla\mozilla.exe" -compose to=berzerke@swbell.net,subject="test me",body="Testing this" without Mozilla currently running (assuming that is the correct path), composer opens, the email address is filled in, the subject is filled in, and the body is filled in. If you run this command WITH Mozilla currently open, composer opens, but no information is filled out. I have not tested this with quick launch. I think this bug may in some way be related to bug 58810. Some people over there go inconsistent results with compose. This bug explains those results nicely.
accepting. Seth any idea?
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.1
As I tested today with latest build on win2k and solaris, things seemed having changed a lot: 1. run (mozilla.exe -compose to=haip@sun.com) in command line; 2. composer opens, the email address is filled in; 3. run above command in another command line; 4. The profile Manager will be brought up and you cannot use the same profile as the first one. (I am not sure whether this is the designed behavior) 5. If you choose another profile, another composer opens, the email address is filled in. So basically you can only bring up mozilla for a certain profile from command line only once.
The profile manager "problem" I also recognized :-( Now it is impossible to use Mozilla more than once in more than one window (I have two displays here with eight (!) desktops). So, I want to write an eMail but in Mozilla I have to look on which desktop the app is open :-(((
Just FYI. If you are using CDE, and want to disperse mozilla windows to different desktops, you can click upper-left icon of the window, and use Occupy Workspace... to move that window to other desktops. Or you can rename a workspace to "Mozilla" and only use mozilla in that workspace:) Surely this is not as comfort as using the command line to bring up a new mail window.
Thank you Harry for this information. I already knew that behaviour but as you described: "Surely this is not as comfort as using the command line to bring up a new mail window." Just use "Send as eMail" from 3rd party apps (e.g. OpenOffice.org, StarOffice) from a different desktop then that one you have Mozilla opened.... That is a real problem because it works with other mail apps!
Is there some progress? I have the same problem on RH Linux with Mozilla 1.3 (oh, quite a long time since 0.9 :) Summary: if Mozilla is running, invoking message composer window with more arguments (subject, attachment) ignores them (just an 'empty' window appears). There is one good reason why one wants this working; currently is not possible to write a Nautilus script fof mailing the selected file.
this problem is partially solved by the patch of bug#149126 if there is already a running instance of mozilla, what you need to do is to launch the compose window by the following command: $mozilla -remote "xfeDoCommand(composeMessage,to=...,attachment=...)" Personally, I think this bug can even be marked as fixed. :-)
xfeDoCommand(composeMessage,...) works quite fine, but it seems, that only one 'attachment' field is used (actually the very first one). It would be fine, if more files could be attached at once.
I am running Moz 1.6 Linux (Fedora1): Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040116 This syntax: mozilla -remote 'xfeDoCommand(composeMessage,to=xyz@nowhere.net,attachment=myfile.txt)' works, in that it brings up a composer window with the fields filled in correctly, but if I actually try to send the message, I get a dialog that says "There was a problem including the file myfile.txt in the message. Would you like to continue the message without this file?" So I can't actually send my message with the attachment. I can attach the same file manually in the composer and it works fine. Adding a path to the file to be attached doesn't help. This is starting a new composer window with one mozilla instance already running. I'll try starting a new one from scratch and see if it works.
None of these worked (starting a new mozilla each time): $ mozilla -compose to="jes@nowhere.net" attachment="/home/jes/x.ps" result: second arg ignored, no entry in attachment list $ mozilla -compose attachment=myfile.txt result: composer window with "myfile.txt" in attachment list; send fails as in previous comment $ mozilla -compose attachment=/home/jes/myfile.txt result: composer window with "/home/jes/myfile.txt" in attachment list; send fails NOTE: This bug is already reported as 77399 (sorry, I only just now saw it). I'll add a comment there.
Product: MailNews → Core
This bug as originally reported (under Windows) WFM with Seamonkey 1.5a, Win2K. (In reply to comment #13 [Joe Smith]) > None of these worked (starting a new mozilla each time): That's because all of those use incorrect syntax. See: http://www.mozilla.org/docs/command-line-args.html#Syntax_Rules Files must be specified using the file:// scheme; and arguments to -compose must be comma-separated.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.