command line argument "attachment" (of command "-compose") is not working
Categories
(Thunderbird :: OS Integration, defect)
Tracking
(thunderbird_esr6869+ fixed, thunderbird69 wontfix, thunderbird70 fixed)
People
(Reporter: klaus.riech, Assigned: jorgk-bmo)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
1.47 KB,
patch
|
mkmelin
:
review+
jorgk-bmo
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0
Steps to reproduce:
I sent a windows shell command (to be precise using the VBA command "shell"):
C:\Program Files (x86)\Mozilla Thunderbird\Thunderbird.exe -compose "to='test@gut-cert.de',cc='',subject='mysubject',body='Dear Mr Test',attachment='C:\test.txt' "
Actual results:
Thunderbird opens. A new Mail is created.
The Mail is completely empty, no TO, not SUBJECT, no BODY - and nothing attached.
If I remove the command line argument "attachment". The Mail opens perfectly normal with TO, SUBJECT and BODY.
Expected results:
The Mail should have been created with TO ("test@gut-cert.de"), SUBJECT ("mysubject"), BODY ("Dear Mr Test") and the file "test.txt" attached to it.
Comment 1•5 years ago
|
||
Thanks for filing the bug
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Hmm. Apparently because Cc["@mozilla.org/toolkit/command-line;1"] is gone.
Assignee | ||
Comment 3•5 years ago
|
||
Sigh, we use:
let commandLine = Cc["@mozilla.org/toolkit/command-line;1"]
https://searchfox.org/comm-central/rev/753e6d9df9d7b9a989d735b01c8b280eef388bab/mail/components/compose/content/MsgComposeCommands.js#2676
And that XPCOM API has disappeared from M-C in bug 1491560: https://hg.mozilla.org/mozilla-central/rev/7a4dadc9c3e6
So we need to restore this.
Assignee | ||
Comment 4•5 years ago
•
|
||
This will do it: Cu.createCommandLine().
EDIT: From https://hg.mozilla.org/mozilla-central/rev/7a4dadc9c3e6#l3.12
Assignee | ||
Comment 5•5 years ago
|
||
Works fine locally, I used:
thunderbird.exe -compose "to=test@gut-cert.de,subject=mysubject,body='Dear Mr Test',attachment=D:\Desktop\BVG-Preise-2016.pdf "
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
TB 68.1 ESR:
https://hg.mozilla.org/releases/comm-esr68/rev/6abdadcb296d084759a5596380010bacdf0027d7
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/bcc11bb0ae6c
create command line via Cu.createCommandLine() after bug 1491560. r=me
Comment 8•5 years ago
|
||
Comment 9•5 years ago
|
||
Related to this, I think it was unnoticed because at https://searchfox.org/comm-central/rev/753e6d9df9d7b9a989d735b01c8b280eef388bab/mail/components/compose/content/MsgComposeCommands.js#3047 we don't really get a prompt, only the "Cannot call openModalWindow on a hidden window" error.
Assignee | ||
Comment 10•5 years ago
•
|
||
Hmm, well, no one uses -compose " ... attachment= ..." on Daily or Beta. I tried in on 68.1, works fine again.
EDIT: I see, you mean the debug console doesn't show it. Right.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Description
•