home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
CEREBRUM
/
DM197B2.ZIP
/
DAWG19B.MOD
next >
Wrap
Text File
|
1994-05-03
|
4KB
|
96 lines
╔══════════════════════════════════════════════════════════════════════════╗
║ MOD :DAWG19B.MOD - Use DMAIL to send ASV ║
║ DATE :05/02/94 ║
║ USAGE :WWIV 4.22 ║
║ VERSION :1.2 ║
║ Descrip.:Allows the use of my DMAIL to send ASV mail with TB3.MOD ║
║ Diff. :3 (maybe even a 0 :>) (on a scale of 1-10, 1 being easy) ║
║ Author :6Dawg0 116@134722/116@11349802/116@134870 5(3Net/Link/Ice5)0 ║
║ BBS :1The 6Dawg 1House0 ║
║ Thanx to:5Falken0 of 2Defcon 5Five0 (3478 NET/ICE/C/NET & 13454 WWIVLink) ║
║ for beta testing this mod and for his countless suggestions ║
║ some of which were implemented. ║
║ The Bishop (7 net) for the TB3 mod! ║
╚══════════════════════════════════════════════════════════════════════════╝
This mod will run the DMAIL program in ASV mode. Right now it is coded
to handle TB3.MOD as it is what I use and IMO the best one ever written.
It will send out the mail to the home system to check the validity of the
user as the Bishops does. It shows up as coming from user #1 instead of -1,
which is the only *real* advantage, but remember you can always install DAWG18
and send newuser mail too...
You MUST have the DMAIL program to use this, and it should be AT LEAST v1.97,
as I didn't add support for this until then. Note that unlike DAWG18
you *don't* have to shrinkout for this. The reason is that it's not imperative
for this mail to get analyzed right away as a newuser mail is. This will be
sent as soon as the user logs off.
Step 1:
-------
BACK UP YOUR SOURCE CODE!!!!!!!! This mod only alters ASV.C, but
you should always back up your source code. If something goes wrong or you
don't like the mod, you have something to go back to.
Step 2:
-------
In ASV.C add these lines in the VOID ASV():
#ifdef ASV_EMAIL
messagerec msg;
char mail[81],drop[81]; /*ADD THIS LINE*/
further down:
#ifdef ASV_EMAIL
/*ADD the next 7 lines*/
if (instance>1)
sprintf(drop,"CHAIN.%3.3d",instance);
else
strcpy(drop,"CHAIN.TXT");
create_chain_file();
sprintf(mail,"DMAIL.EXE /M4 /S%d /N%d /C%s",inode,net_num,drop);
run_external(mail);
/*Remove the rest of the way down until the #endif*/
sprintf(forcetitle,"%s %s SysOp Auto Validation",syscfg.systemname,net_name);
if (strlen(forcetitle)>60)
forcetitle[60]=0;
sprintf(s1,"%sFORMASV.MSG",syscfg.gfilesdir);
load_workspace(s1,1);
msg.storage_type=2;
inmsg(&msg,forcetitle,0,0,"EMAIL",0,snode,0);
sendout_email(forcetitle,&msg,0,1,inode,0,1,net_sysnum,1,net_num);
forcetitle[0]=0;
/* STOP HERE*/
#endif
} else {
valfile=2; //ASV-FALS.MSG
Step 3:
-------
Then recompile. A quicky since it's only one file.
Unless you are using the forcetitle mod in it's entirety you *can* remove
it now as it's not needed for the ASV. However I would only do this if you
know what you are doing. :)
If you have any problems with this mod, feel free to contact me. My net
address is 1@3472, and my link address is 1@13498 and I'm back in IceNET
at 1@3487. If you use this, let me know how it works.
Thanks,
6Dawg0
Revision history:
-----------------
1.10 (02/03/94) Updated for v4.23 and Dmail v1.93ß. Also fixed a few typos
here. :)
1.00 (05/16/93) Whipped this up for v1.10 of DMAIL.