MozillaZine

Print eml files using Thunderbird.exe

User Help for Mozilla Thunderbird
ramanish88
 
Posts: 5
Joined: May 6th, 2015, 1:50 am

Post Posted May 6th, 2015, 2:03 am

hi,

I am Ramkumar from India.
I tried to print the eml file using the thunderbird.exe from command prompt.

step 1 : I opened the eml file using the below command .

C:\>"C:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe" c:\Users\PRABAK
RX\Desktop\example.eml
file has got opened.


step 2 : I tried to print the file using the command prompt by giving the foolowing command.

C:\>"C:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe" /PT c:\Users\PRABAK
RX\Desktop\example.eml

I am getting the complete exe is launched and file is not printed.

I need the file to be printed on the formt he thunderbird.exe automatically when the command is given.

please help me out in this.

tanstaafl
Moderator

User avatar
 
Posts: 45784
Joined: July 30th, 2003, 5:06 pm

Post Posted May 6th, 2015, 2:37 am

The problem is that .eml file support is limited. Thunderbird will display the contents, but doesn't treat it as a message. That means it can't be copied, moved, printed etc. However, you should be able to include it as an attachment in a message that that you send to yourself, and then open and print that attachment using Thunderbird.

ramanish88
 
Posts: 5
Joined: May 6th, 2015, 1:50 am

Post Posted May 6th, 2015, 5:18 am

ok thanks! can u please give me the command to invoke the file menu while opening the eml file in thunderbird?

tanstaafl
Moderator

User avatar
 
Posts: 45784
Joined: July 30th, 2003, 5:06 pm

Post Posted May 6th, 2015, 5:42 am

ALT+F is the shortcut. Usually a shortcut is the ALT key plus one or more letters. If a menu item has a shortcut the letter is underlined. So ALT+F+O launches the window to specify the .eml file.

Ctrl+Shift+A launches the window to specify an attachment when you are composing a message.

ramanish88
 
Posts: 5
Joined: May 6th, 2015, 1:50 am

Post Posted May 6th, 2015, 6:58 am

tanstaafl wrote:ALT+F is the shortcut. Usually a shortcut is the ALT key plus one or more letters. If a menu item has a shortcut the letter is underlined. So ALT+F+O launches the window to specify the .eml file.

Ctrl+Shift+A launches the window to specify an attachment when you are composing a message.
hi.

I asked the command to print the feml file from thunderbird.exe through command prompt.

tanstaafl
Moderator

User avatar
 
Posts: 45784
Joined: July 30th, 2003, 5:06 pm

Post Posted May 6th, 2015, 2:30 pm

As far as I know that doesn't exist. There is limited support for command line arguments. See http://kb.mozillazine.org/Command_line_ ... hunderbird

morat
 
Posts: 3439
Joined: February 3rd, 2009, 6:29 pm

Post Posted May 7th, 2015, 6:30 am

I got the Command Line Print 0.5.2 extension to print in Thunderbird 31.

Fix:

viewtopic.php?p=12974777#p12974777

Extra Fix:

install.rdf (add the target application for Thunderbird)

Code: Select all
<em:targetApplication>
  <Description>
    <em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
    <em:minVersion>2.0</em:minVersion>
    <em:maxVersion>38.*</em:maxVersion>
  </Description>
</em:targetApplication>

Test:

Code: Select all
thunderbird.exe -print file:///C:/test.eml
thunderbird.exe -print C:\test.eml

ramanish88
 
Posts: 5
Joined: May 6th, 2015, 1:50 am

Post Posted May 11th, 2015, 12:42 am

hi,

I am little happy on seeing ur approach. but please let me know where to add the install.rdf file for thunderbird before testing it in command line.

DanRaisch
Moderator

User avatar
 
Posts: 122159
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Post Posted May 11th, 2015, 6:25 am


ramanish88
 
Posts: 5
Joined: May 6th, 2015, 1:50 am

Post Posted May 12th, 2015, 12:16 am

hi,

Actually i need to print the .eml file using thunderbird.exe through command prompt or if there is any.net code to implement using thunderbird DLL i willhappy to implement it. please help me on it.

morat
 
Posts: 3439
Joined: February 3rd, 2009, 6:29 pm

Post Posted May 12th, 2015, 7:10 am

cmdlnprint_0_5_2.zip contains 1 file:

cmdlnprint_0_5_2.xpi (a ZIP file)

cmdlnprint_0_5_2.xpi contains 10 files:

install.rdf
chrome.manifest
components\cmdlnprint.js
chrome\license.txt
chrome\content\mininav.js
chrome\content\mininav.xul
chrome\content\preferences.xul
chrome\locale\en-US\mininav.dtd
chrome\locale\en-US\preferences.dtd
defaults\preferences\cmdlnprintSettings.js

You need to edit the following files inside the extension file.

install.rdf
chrome.manifest
components\cmdlnprint.js
chrome\content\mininav.js

The first file has Windows line endings. The other files have Unix line endings which Notepad does not support.

You should also check for nefarious code before installing the extension since it has not been reviewed by Mozilla.

P.S.

There is no way to access Thunderbird from C#/.NET or VBA.

Return to Thunderbird Support


Who is online

Users browsing this forum: No registered users and 4 guests