Print eml files using Thunderbird.exe

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

Print eml files using Thunderbird.exe

Post by ramanish88 »

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.
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Print eml files using Thunderbird.exe

Post by tanstaafl »

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

Re: Print eml files using Thunderbird.exe

Post by ramanish88 »

ok thanks! can u please give me the command to invoke the file menu while opening the eml file in thunderbird?
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Print eml files using Thunderbird.exe

Post by tanstaafl »

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

Re: Print eml files using Thunderbird.exe

Post by ramanish88 »

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.
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Print eml files using Thunderbird.exe

Post by tanstaafl »

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: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: Print eml files using Thunderbird.exe

Post by morat »

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

Re: Print eml files using Thunderbird.exe

Post by ramanish88 »

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.
User avatar
DanRaisch
Moderator
Posts: 127187
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Re: Print eml files using Thunderbird.exe

Post by DanRaisch »

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

Re: Print eml files using Thunderbird.exe

Post by ramanish88 »

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: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: Print eml files using Thunderbird.exe

Post by morat »

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.
Post Reply