Open
Bug 1305218
Opened 8 years ago
Updated 2 years ago
Add method to get standard input from command line
Categories
(Thunderbird :: General, enhancement)
Thunderbird
General
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: abspack, Unassigned)
Details
Attachments
(1 file)
3.10 KB,
patch
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 Build ID: 20160920074044 Steps to reproduce: I want to do something like cat body.htm | thunderbird -compose
Reporter | ||
Comment 1•8 years ago
|
||
The patch attached is a first idea how to implement the API for it.
Reporter | ||
Updated•8 years ago
|
OS: Unspecified → All
Hardware: Unspecified → All
Updated•8 years ago
|
Severity: normal → enhancement
Product: Toolkit → Thunderbird
Reporter | ||
Comment 2•8 years ago
|
||
I got the idea for it when working on this enhancement: https://bugzilla.mozilla.org/show_bug.cgi?id=882104
Reporter | ||
Updated•8 years ago
|
Attachment #8794482 -
Flags: feedback?(bugmail)
Comment 3•8 years ago
|
||
Comment on attachment 8794482 [details] [diff] [review] stdinput.patch I'm no longer a Thunderbird contributor or reviewer. Having said that, your patch makes a change to Gecko, not Thunderbird-specific code, so Thunderbird reviewers can't approve it either. Also, I'm very confident this change wouldn't be accepted into Gecko core since it's synchronous IO on the main thread not using the existing IO APIs. I don't think the appshells close stdin, so you can probably use existing (async) API's on the existing stdin file descriptor or something like that. I'd expect there's existing code out there that does something similar if you're wedded to this command-line workflow.
Attachment #8794482 -
Flags: feedback?(bugmail)
Reporter | ||
Comment 4•8 years ago
|
||
We actually implemented this enhancement synchronously: https://bugzilla.mozilla.org/show_bug.cgi?id=882104 So we would need a synchronous solution again.
Reporter | ||
Comment 5•8 years ago
|
||
Also, I would like to call the code within Javascript.
Comment 6•8 years ago
|
||
The Thunderbird command line handler additions are done in Javascript, which means that mail reviewers could review them, and also that they could possibly be overridden by an extension. Have you looked at, for example, https://dxr.mozilla.org/comm-central/source/mail/components/nsMailDefaultHandler.js ? I'm a little late to this bug and maybe I'm completely offbase here.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•