GrabMail - Another Silly Arexx Script by Larry Cloud M3001 This one does something cool for anyone who feeds mail and/or files to someone else. It allows them to grab their mail/files at logon. Why create something like this, when they can poll just as easy? Well, its nice to be able to grab stuff when your system is down, or if you're on your bossnode's system anyway. Just stick the GrabMail.REXX in your MEBBSNET:REXX/ directory, and add the following line to your LOGON.TXT(.GRx) file(s): ~v!REXX/MEBBSNET:REXX/GRABMAIL# Also, you need to create a .CFG file for this program and stick it in your ear (oops, I mean your MEBBSNET:CONFIGFILES/ directory). You can look at the example, or create your own. What it contains is, a list of people you feed mail and/or files to, and their addresses. Their name must be in all CAPS and the address must be separated by periods. An example would be: WILLIAM BOWLING 1.102.1011.0 LARRY CLOUD 1.350.31.0 KEITH TOWNSEND 1.366.1968.0 JOE POINT 1.350.31.5 Anyway, this door gets launched at logon (as long as you put that line in your LOGON.xxx file), and searches through the configfile looking for a match of the name with the person who is on. If it doesn't find a match, it exists quietly, so normal users never even know they're in a door. On our system it takes about 1.7 seconds to search through 10 names, so they won't even notice anything is going on. Now, if it DOES find a match, it then looks in the OUT: directory for anything addressed to them. This is the only thing really hardcoded into the program, if you don't have your outbound mail directory assigned as OUT:, you probably should! ;) ANyway, it goes looking in the OUT: directory, and if it finds anything with their 4D address it builds up a list. If it finds a ".FLO", it adds the contents of it too (yes, its even aware of path'ed FLOs, so your files don't HAVE to be in OUT: as well). So once it has everything built up, it LHA's up the whole schebang and sends it to them with the internal file send command. If the transfer is NOT successful, it exits cleanly and leaves everything alone. If its successful, it deletes anything that was destined for their address. It deletes mail and tics, it does NOT delete the actual files that were tic'ed, because they may be in someone else's FLO's as well. Oh, almost forgot, it ASKS them if it should go through all this before it actually does it, IF they are in the .CFG and IF they have mail. Could be they don't WANT to use such a nifty utility ;) Well, as usual, these docs are almost as big as the program itself. I've tested this thing for the last hour, but I have probably missed SOMETHING. Let me know how you like it. I have to get ready for work now (its 6:10am). This little util only took about an hour to write and another hour to debug/test. Larry Cloud - MEBBS E&S NW USA - Kitt's Korner - Fido 1:350/31 Max 90:181/10 (206) 698-0515 USR Sportster 28.8k V.FC (206) 698-7760 USR HST DS 14.4k