I perform a lot of tests that create e-mail messages. I store each message in separate eml file. (I can change file extension if needed.)
I would like to open each file in any mail client and take a screen shot, so I could visually inspect e-mails later.
The idea is that I could use a image viewing application to look at several screenshots in the same time, so I could visually compare them (after each test run).
I have access to Windows, Mac and Linux machines. I would prefer if the solution is in Ruby, but that is not required.
I am searching the web and this site, but no luck so far. I will post the solution in answer if I find it.
Looks like you can not automate Outlook Express. It accepts only
newsonlyandmailonlyoptions when started from command line.Thunderbird accepts file name when started from command line:
That was all I needed to open an e-mail in a mail client.
snapit.exe takes the screen shot and saves it to file.
And here is the script to take the screen shot for multiple eml files.