Marked as: Advanced
Hi,
You may have a web server and perhaps a mail server at your disposal as I do, and want to use your mail account at work, while you travel or in some other situation. Webmail/2 (http://www.michelinakis.gr/Dimitris/webmail/) is then the solution for you on eComStation and OS/2. The author, Dimitrios (sehh) Michelinakis, has written it in rexx and done a great job to make it easy to use and provide the features one can expect, but also allow you to tweak it so that it can fit your needs. It wouldn't hurt though if someone added codepage conversion with Alex Taylors Unicode functions, support for HTML mail (in combination with plain text) and text editing options similar as to what one see here, writing messages as this at OS/2World.
The rexx script that is the heart of Webmail/2 (http://www.michelinakis.gr/Dimitris/webmail/) contain a lot of useful information how to write rexx code that can be handy if you want to write a script yourself that fetch or "talk to" something on the net. You can follow the code quite well if you pile off the extra functions for encryption and decryption. Use an editor, with syntax highlightning that provide you with proper indention such as PMFTE.
I've had both a web, mail and ftp server for several years now, but never managed to get Webmail/2 (http://www.michelinakis.gr/Dimitris/webmail/) to work fully. The problem has been when I tried to send messages, it has always complained that the server (Weasel (http://www.pmoylan.org/pages/os2/weasel.html) now in a new version 1.79) dropped the connection, but as I sat down and started to debug the code it appeard to me what did it.
Webmail/2 (http://www.michelinakis.gr/Dimitris/webmail/) support the stronger login method CRAM-MD5 (apart from weaker methods such as plain login) that I've enabled in Weasel (http://www.pmoylan.org/pages/os2/weasel.html), but that's where the problem reside, the code that function
calcMD5 produce doesn't look right as it's all upper case.
To solve that you have to fetch rexx_md5 (http://www.srehttp.org/apps/rexx_md5/) and
replace the function calcMD5 (
and accompanying functions) with code either from the rexx version that is a bit slower, or the dll-version that is a bit faster.
If you're looking for a web server written in rexx, you may look more at the site hat contain rexx_md5 (http://www.srehttp.org/apps/rexx_md5/) as it offer the SRE2003 & SREhttp/2 www server (http://srehttp2.srehttp.org/). If you download it, ensure you select the link for "SRE2003 & SREhttp/2 combined package" as it contain the complete package and everything you need to get started.
//Jan-Erik