AMINET SELECT



aminet.png

http://de.aminet.net


YamHTML

Editors Note

Do you have the odd PC loving friend that insists in sending you email in HTML format ... Big files containing line upon line of html code ... with the occasional piece of recognisable text buried in there somewhere?

I do ... OK you can choose to save the email (to Ram) rename it (message.html) then open your browser and then read the mail (In all its glory) ..But why should you? YamHTML a cracking little program, Very easy to install (Instructions included) ...Now when you receive an html mail, Yam asks you if you want to View it as html ...Select Yes and it will open your Browser of Choice and display the mail in html format ...Brilliant :)




Reads HTML pages with YAM mail client


Some info about my Arexx script:

It is used for reading HTML pages and embedded images (if there are) downloaded along with e-mails using YAM mail client for Amiga. It uses various amiga browsers.

Note For All Users:

I am very interested to have emails which gives you some problem (if they are not private issues), I need them to test the script and, hopefully, find out the problem. A brief description of the problem would be useful.

If you send me the emails it's better to send them as attachments in raw format. To get a raw format you may use save from the YAM message menu when you are on the reading window.

1.8a note:
Sometimes (rarely) it did not recognized HTML files if they were placed as the body of the mail.
It did not displayed images if there were one or more spaces on their names.

1.8 note:
The icon driven batch file for the configuration now sets all the parameters.
(It may be used instead of editing the first script lines 3 to 7 because it overrides this internal setting -see next Note-).
The option to choose between being asked or not when displaying an html page is now simplified by a sheer yes or not that also can be set by the batch file.
Adapted the documentation to this new version. I hope it's clear enough.

1.7c-d Note: (Not public.)
Among other fixes, resolved a bug which blocked Yam if a bad configuration.
Added an icon to click to easily configure for the browser to be opened and the in new window option. It writes an local environment variable called yam0html which when exists the program overrides the configuration on its first lines and don't ask you for the browser of your choice.

Remember that the prog always uses an already running browser regardless of the configuration. And if you like to use Voyager you must start it first manually, read on for more details. The "in new window" option is valid for Voyager too.

1.7b Note:
Added a control on a never happened event ( but who knows ? ). and another minor but useful change.

For Boing Bag 3.9-2 users: It may happen that AWeb, if opened on its own screen, remains stuck to the front and can only be dragged down.
It depends of the new exec.library, the cure is: SetPatch SKIPROMUPDATES exec.library on the startup-sequence.
Installing has been updated to 1.8.

Installing:

First of all you'll have to edit the first script lines 3 to 7 to set your browsers paths and names and the other two options, modifying the preset lines to your needs.

Don't use MultiView as Default it don't unlock files, use SimpleHtML instead.

There are two ways for installing it:
1)
» Copy the file YamHtml.yam into the Rexx directory inside YAM:.
» Start YAM and press config button or select Configuration from the Settings menu.
» Click on Arexx to the left list of options of the configuration window.
» Scroll the Scripts list on the right until you see 'When reading a message' option, then click on it.
» Find the file using the Script gadget at the bottom, the string gadget must show: YAM:Rexx/YAMhtml.yam
» Choose Arexx in the cycle gadget.
» It seems to work fine regardless of the 'Wait for termination' checkbox perhaps it is better to check it, just try it.
» 'Open console window' checkbox may remain unchecked.
» Click on Save.
» Done
2)
» Copy the file YamHtml.yam into the Rexx directory inside YAM:.
» Start YAM and press Config button or select Configuration on the Settings menu.
» Click on Arexx to the left list of options of the configuration window.
» Look for the first free 'Scripts' menu entry (written in black are free) then click on it.
» Find the file using the Script gadget at the bottom, the string gadget must show: YAM:Rexx/YAMhtml.yam .
» Write YAMhtml in the 'Name' string gadget.
» Choose Arexx in the cycle gadget.
» It seems to work fine regardless of the 'Wait for termination' checkbox perhaps it is better to check it, just try it.
» 'Open console window' checkbox may remain unchecked.
» Click on Save.
» Done

Usage has been updated to 1.8.

Usage:

As there are two ways for installing it, there are two for using it too:

Choosing the first installation method (preferred) the program automatically checks if there is an HTML document to be seen and, accorcing to the setting, asks you if you want or not see it as HTML or directly shows it up.

With the second method the program remains inactive until you call it by the Scripts menu.

Behavior has been updated to 1.7.


Behavior:

If an Amiga browser is running (AWeb,IBrowse or Voyager) the program uses it, otherwise it will ask you to choose one. (This only once in an Amiga session). If an Amiga browser is not running and you have been asked once to open one, the program reopen the browser you had first choosen.

But if you,in the meantime, have changed your mind, you may change your browser by closing the one you are using and opening a different one by hand.

If you are on line with Genesis or Miami and one of the above browswrs is running the script will let the browser to get the doc. related pictures from the net.

The script now put the browsers window (for AWeb the screen too) to the front exept for IBrowse and Voyager: This two puts a new window to the front if the variable NewWind in line 7 of the script is set to "YES".

1.7a Note: The NewWind="YES" variable now controls the opening of a new window with AWeb also.

In this version, 1.7, I decided to cut off the option to start Voyager from the prog. bacause it crashes my machine on starting Voyager, precisely while loading cookies, I tried to take the piece of code that does the job and run it as an Arexx macro from the shell and it opens V nicely. It's unbelievable ,I can not understand.

Nevertheless, you may use V by starting it manually.

I think that V, at this stage, is a bit unreliable yet.

Please, read the beginning of this doc. on how to set the browsers paths and names.


Sideffect:

Exiting Yam the script leaves a directory inside T: containing the last shown document. It is not annoying to me but it is easy cure by writing a small ADOS batch to be run on leaving Yam. If you want you may e-mail me about this and for bug reports, thank you.

1.7 Note:
I enclose now a little Arexx to put on "Program Termination" of the Yam arexx configuration (if you wish) .It will delete the last shown doc and the dir in T: .

Law:

This script is freeware and I, the author, will NOT be responsible if this script or its misuse may cause any damage whatsoever.


Author: Rodolfo Ignazi rodign@inwind.it or rodign@tiscali.it

Note:

To download YamHTML click on the Aminet link at the top of this page and type YamHTML into the search engine.


Previous