home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / CEREBRUM / DM197B2.ZIP / DAWG19B.MOD next >
Text File  |  1994-05-03  |  4KB  |  96 lines

  1. ╔══════════════════════════════════════════════════════════════════════════╗
  2. ║ MOD     :DAWG19B.MOD - Use DMAIL to send ASV                             ║
  3. ║ DATE    :05/02/94                                                        ║
  4. ║ USAGE   :WWIV 4.22                                                       ║
  5. ║ VERSION :1.2                                                             ║
  6. ║ Descrip.:Allows the use of my DMAIL to send ASV mail with TB3.MOD        ║
  7. ║ Diff.   :3 (maybe even a 0 :>)  (on a scale of 1-10, 1 being easy)       ║
  8. ║ Author  :6Dawg0   116@134722/116@11349802/116@134870          5(3Net/Link/Ice5)0            ║
  9. ║ BBS     :1The 6Dawg 1House0                                                  ║
  10. ║ Thanx to:5Falken0 of 2Defcon 5Five0 (3478 NET/ICE/C/NET & 13454 WWIVLink)     ║
  11. ║            for beta testing this mod and for his countless suggestions   ║
  12. ║            some of which were implemented.                               ║
  13. ║          The Bishop (7 net) for the TB3 mod!                             ║
  14. ╚══════════════════════════════════════════════════════════════════════════╝
  15.  
  16. This mod will run the DMAIL program in ASV mode.  Right now it is coded
  17. to handle TB3.MOD as it is what I use and IMO the best one ever written.
  18. It will send out the mail to the home system to check the validity of the
  19. user as the Bishops does.  It shows up as coming from user #1 instead of -1,
  20. which is the only *real* advantage, but remember you can always install DAWG18
  21. and send newuser mail too...
  22.  
  23. You MUST have the DMAIL program to use this, and it should be AT LEAST v1.97,
  24. as I didn't add support for this until then.  Note that unlike DAWG18
  25. you *don't* have to shrinkout for this.  The reason is that it's not imperative
  26. for this mail to get analyzed right away as a newuser mail is.  This will be
  27. sent as soon as the user logs off.
  28.  
  29.  
  30. Step 1:
  31. -------
  32. BACK UP YOUR SOURCE CODE!!!!!!!!   This mod only alters ASV.C, but
  33. you should always back up your source code.  If something goes wrong or you
  34. don't like the mod, you have something to go back to.
  35.  
  36.  
  37. Step 2:
  38. -------
  39. In ASV.C add these lines in the VOID ASV():
  40.  
  41. #ifdef ASV_EMAIL
  42.   messagerec msg;
  43.   char mail[81],drop[81];   /*ADD THIS LINE*/
  44.  
  45. further down:
  46.  
  47.  
  48. #ifdef ASV_EMAIL
  49. /*ADD the next 7 lines*/
  50.  
  51.        if (instance>1)
  52.          sprintf(drop,"CHAIN.%3.3d",instance);
  53.        else
  54.          strcpy(drop,"CHAIN.TXT");
  55.       create_chain_file();
  56.       sprintf(mail,"DMAIL.EXE /M4 /S%d /N%d /C%s",inode,net_num,drop);
  57.       run_external(mail);
  58. /*Remove the rest of the way down until the #endif*/
  59.       sprintf(forcetitle,"%s %s SysOp Auto Validation",syscfg.systemname,net_name);
  60.       if (strlen(forcetitle)>60)
  61.         forcetitle[60]=0;
  62.       sprintf(s1,"%sFORMASV.MSG",syscfg.gfilesdir); 
  63.       load_workspace(s1,1);
  64.       msg.storage_type=2;                  
  65.       inmsg(&msg,forcetitle,0,0,"EMAIL",0,snode,0);
  66.       sendout_email(forcetitle,&msg,0,1,inode,0,1,net_sysnum,1,net_num);
  67.       forcetitle[0]=0;
  68.  
  69. /* STOP HERE*/
  70. #endif
  71.     } else {
  72.       valfile=2; //ASV-FALS.MSG
  73.  
  74.  
  75. Step 3:
  76. -------
  77. Then recompile.  A quicky since it's only one file.
  78.  
  79. Unless you are using the forcetitle mod in it's entirety you *can* remove
  80. it now as it's not needed for the ASV.  However I would only do this if you
  81. know what you are doing. :)
  82.  
  83. If you have any problems with this mod, feel free to contact me.  My net
  84. address is 1@3472, and my link address is 1@13498 and I'm back in IceNET
  85. at 1@3487.  If you use this, let me know how it works.
  86.  
  87. Thanks,
  88.  
  89.               6Dawg0
  90.  
  91. Revision history:
  92. -----------------
  93. 1.10  (02/03/94)  Updated for v4.23 and Dmail v1.93ß.  Also fixed a few typos
  94.                   here. :)
  95. 1.00  (05/16/93)  Whipped this up for v1.10 of DMAIL.
  96.