how to add multiple attachment using thunderbird commandline? - thunderbird

I am stuck at this problem and not really aware of the syntax. How do I attach multiple not one?
This is for single attachment: thunderbird -compose attachment=/home/jj/test.docx
But I want to do something like this:
thunderbird -compose attachment=/home/jj/test.docx&/home/jj/test1.docx
thanks!

By using the command
thunderbird -compose "attachment='/home/jj/first.txt,/home/jj/second.txt'"
under Linux both files are attached. I think it should work for all operating system but I did not test it there.

This also works in Windows:
thunderbird -compose "attachment='C:\first.txt,C:\second.txt'"

Related

How to convert cgm to png on windows

I want to convert a .cgm file to an image file (.png) on windows.
Are there any freeware/opensource tools for this? I tried to ImageMagik but it does not support this operation. Commandline inteface will be an added advance if any of the tools provide it.
UniConvertor is open source, and the best choice in my opinion.
The windows binaries worked great for me, https://sk1project.net/uc2/download/
From a command line you'd simply type uniconvertor input.cgm output.png
You can try https://cortona3d.com/en/cortona2d-viewer-download. When installed it understand .cgm extension and directly opens in IE and you can view it/or take snapshot.
Other tool that you can try(but not free) is reaConverter(https://www.reaconverter.com/)
It has a nice command line interface that converts cgm to PNG directly
There is a free tool available XnView which is very handy when it comes to view, resize and edit your images. It supports more than 500 different formats. But you will have to download an additional plug-in https://www.cadsofttools.com/products/plugins-for-3d-party-programs/ It will enable your need to deal with CGM file formats.

How does one put images into a Lotus Notes email generated from the command line?

I'm able to use this method to generate emails, but is there a way to include images in the emails from the command line? Maybe using base64 encoding or something like that?
I've also seen a few copy/pastes where I ended up with <324d21q.jpg> and I wonder if that has something to do with it.

Convert MS-Office to pdf

I'm using OfficeToPDF to convert the MS-Office files to pdf. However, I only can run the command:
OfficeToPDF test.doc test.pdf
in cmd (windows)
I want to embed this code into my cgi file (Perl). Can anyone show me how to do this, thank you!
(I used:
system("OfficeToPDF test.doc test.pdf");
but seems it's not work)
That should work but your envormental parameters might not be setup right, you should include full paths(or proper relative ones) and see if that fixes the problem up. If not you might want to post your debug log, or enable verbose output. Your perl also might not be setup to execute shell commands for security reasons when in cgi mode and the logs would help clarify that.
Try to:
use the full paths to OfficeToPDF and target PDF location because usually, the CGI scripts are run in another user context,
check, the CGI user has reading and writing rights for both files (and, off sure, right to execute the OfficeToPDF)
But it depends what means "it's not work", of sure.

How do browsers communicate with email programs?

I've searched around for a bit, but haven't been able to find anything useful on this.
How do browsers communicate with email programs, such as Thunderbird and Outlook (on the Mac, if that's relevant)?
By communicate, I mean the process it goes through to create a new email window with a designated to address, subject, body, through the mailto: link. How does the browser let the email program know what to put for each field? Using the command line (for Thunderbird, at least) didn't make much sense, as that opens a brand new instance of Thunderbird on the Mac.
I haven't found any sort of API for this, so if someone can point me in the right direction, that would be greatly appreciated. Thanks!
On windows, the browser use the "default" email client defined by the system.
It's stored in the Windows registry and define the command line to open the mail program. You can find more info and an exemple on the Microsoft website.
http://msdn.microsoft.com/en-us/library/windows/desktop/cc144109%28v=vs.85%29.aspx#sample_mail_program
If I look in my registry for thunderbird, It seems to execute:
"C:\Program Files\Mozilla Thunderbird\thunderbird.exe" -osint -compose "%1"
I have no idea how it works for the mac!
the additional information sent to the mail client is usually (from what i have seen) tacked onto the back of the mailto command.
in the following example, the client should automatically fill in the subject as 'greetings from stackoverflow'
mailto:hello#example.com?subject=greetings from stackoverflow
i have listed the other commands i know of below:
to edit subject: ?subject=
to edit cc: ?cc=
to edit bcc: ?bcc=
to edit body content: ?body=
these can also be used together by placing them after eachother and swapping the '?' for a '&', example
mailto:hello#example.com?subject=hello there&body=goodbye
this should create an email with the subject of 'hello there' and a body message of 'goodbye'
i hope this helps!
A very useful oldies that explains the surface called RCDefault
It shows you that the Finder or the Browser uses (can use) URLs to call other applications.
I am attaching the screenshot for the Mail application on OSX here:
The OS will then call this application with the URL (or file) and the application is supposed to understand how to open that URL.
The URL scheme for the mailto protocol for apple, is here
You should be able to find other schemes for the application you need to use.

Command prompt convert png to swf

I want to let a user upload a PNG-file with alpha transparency and have it compiled by the server to a swf-file with jpeg compression on the embedded PNG-file.
How can I make this happen?
I thought first I'd just construct a class and compile it with Flex Framework, but Flex does not compress the embedded PNG-files. You who have tried have probably ended up making an assets.swf file compiled from within the Flash IDE.
Any thoughts appreciated.
Kind regards,
nitech
In the swftools package there is a command png2swf. Use the -j switch for jpeg compression.
Try ImageMagick, I recall seeing it used by a lot of shared-hosting web-servers. It can be executed on the command line or in scripts.