Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: Targhan on August 12, 2003, 01:39:59 AM

Title: autocheck mail in newer versions of MicroDot2
Post by: Targhan on August 12, 2003, 01:39:59 AM
I posted the same thread on MorphZone, but it was pointed out to me that this thread really belongs here as well.  This isn't a "red blue" thing, but a fix for newer versions of Microdot2.

The following ARexx script can be cut and pasted into your favorite editor, and saved as an .mdrx file.  Put this file into your MicroDot2 Arexx (or MDRexx for users of MDMaster), and it will automatically check for mail every two minutes.  

You NEED a wait command in your path.  To test this, simply pull up a shell and type wait ?.  If the command is there you will get a return.  When you exit MicroDot2, the script will also exit.

Anyway, to the script...

---8<----Cut-Here--8<----
/*
$VER MD_Checker 0.5, 11 August 03
Created With: GoldED Studio 6, on MorphOS 1.4
For use on Any Amiga/MorphOS/AROS system with ARexx
*/

checktime = 120

address md.1
checkmailnews mail

call TIME('R')

do forever
if TIME('E') > checktime then do
address md.1
checkmailnews mail
call TIME('R')
end
address command
wait checktime
end