Closed Bug 376089 Opened 19 years ago Closed 17 years ago

open .eml files from the command line using relative path fails

Categories

(Thunderbird :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0b3

People

(Reporter: estellnb, Assigned: mkmelin)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.3) Gecko/20070320 SUSE/2.0.0.3-3.1 Firefox/2.0.0.3 Build Identifier: 2.0.0.0pre (20070329) There is no program for viewing .eml-files under Linux. Opening .eml-Files from the command line with Thunderbird would also enable opening them directly from a file browser like konqueror. Moreover an eml-viewer plugin for konqueror would be no replacement for this feature request since the user may also want to edit and save emls stored as file. Reproducible: Always Steps to Reproduce: 1. open command line 2. enter: thunderbird mysaved.eml Actual Results: nothing happens Expected Results: Thunderbird should open the mail. If Thunderbird is already open this should happen very fast by sending an open request to the already running Thunderbird process. Bug 351064 describes a similar problem when trying to open an .eml message from within Thunderbird. Nevertheless for Linux users it will be important to open emls by directly invoking Thunderbird with appropriate parameters.
Version: unspecified → 2.0
Hmm, it does work if I enter thunderbird /whole/path/to/eml/msg.eml but not with a relative path. In both cases I get this in the error console: Error: [Exception... "'Failure' when calling method: [nsICommandLineHandler::handle]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "<unknown>" data: no]
I have not found out yet what the problem is on my machine. Simply nothing happens if I type: > thunderbird /home/elmar/Dokumente/Korrespondenz/\[JMLC2006\]\ Paper\ 14.eml Nothing; not even an error message!
OK. The path must be an absolute one and the file name must not contain any spaces.
version 2.0.0.0 (20070326) (rc2) Debian GNU/Linux 4.0testing Full path works, no matter what characters in the name (spaces, "[", "]", and "\", and some non-ASCII ones, but the latter don't need to be escaped). Relative path (including a file in the current directory) doesn't work, no other error messages than those with a full path (not related to the bug itself).
because of comment #1 and #4 ..changing to bug
Severity: enhancement → normal
On WinXP SP2 with Tb2-rc1 I see the following behaviour: 1) Tb not running Full path always works Relative path - Tb starts up but eml does not open. Error message: Error: startFolder has no properties Source File: chrome://messenger/content/msgMail3PaneWindow.js Line: 999 2) Tb already running Full path works Relative path does not work. In both of these cases I see the nsICommandLineHandler::handle error. Wildmyron
OS: Linux → All
->NEW
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: open eml files from the command line → open eml files from the command line using relative path fails
When opening an .eml as the attechment of a message currently being viewed by Thunderbird it should not ask for a program to open the eml with but simply view the .eml-File as any other email.
It does - but even if you have problems with that it's totally unrelated to this bug.
Assignee: mscott → nobody
I can reproduce this bug very easily. A running 2.0.0.17 thunderbird: # thunderbird email.eml No windows opens # thunderbird /home/user/email.eml opens windows with the expected windows.
Taking.
Assignee: nobody → mkmelin+mozilla
Hardware: x86 → All
Summary: open eml files from the command line using relative path fails → open .eml files from the command line using relative path fails
Target Milestone: --- → Thunderbird 3.0b3
Attached patch proposed fix — — Splinter Review
Use ResolveFile to resolve the path, show an error dialog if the file does not exist.
Attachment #364505 - Flags: superreview?(bienvenu)
Attachment #364505 - Flags: review?(bienvenu)
Status: NEW → ASSIGNED
Comment on attachment 364505 [details] [diff] [review] proposed fix thx, Magnus, this wfm.
Attachment #364505 - Flags: superreview?(bienvenu)
Attachment #364505 - Flags: superreview+
Attachment #364505 - Flags: review?(bienvenu)
Attachment #364505 - Flags: review+
changeset: 2140:329c16f96d25 http://hg.mozilla.org/comm-central/rev/329c16f96d25 ->FIXED
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: