home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / ZF-6A.ZIP / ZF-6A.MOD < prev   
Encoding:
Text File  |  1995-07-09  |  5.6 KB  |  138 lines

  1. Neue Regel (Or Silent Knight) #1 @10141
  2. Wed Jul 05 12:44:15 1995
  3. ┌───────────────────────────────────────────────────────────────────────────┐
  4. │ Mod Name      : ZF-6a.MOD      Mod Author: Neue Regel      1@10141 WWIVnet│
  5. │ Difficulty    : ░░░░░░░░░░     /┤lpha-1 Republic [ASV/GSA] 1@6293  ICEnet │
  6. │ WWIV Version  : 4.24                                                      │
  7. │ Mod Date      : 6-28-95                                                   │
  8. │ Files Affected: MSGBASE1.C READMAIL.C                                     │
  9. │                                                                           │
  10. │ Description   : Download a Message at MAIL/MESSAGE Prompt via "$"         │
  11. └───────────────────────────────────────────────────────────────────────────┘
  12.  
  13.  ─[Legal Info]───────────────────────────────────────────────────────────────
  14.  This modified code may contain some parts of WWIV source code, which is
  15.  copyright 1988-1995 by Wayne Bell and licensed only to registered users of
  16.  WWIV.  Use of WWIV source without registration constitutes a license
  17.  violation, could lead to legal prosecution and is generally regarded as evil
  18.  Shareware  distributors  and CD-ROM publishers may not distribute this
  19.  modified code without express written permission of the Author or WWIV
  20.  Software Services.
  21.  
  22.  ─[Extended Description]─────────────────────────────────────────────────────
  23.  Well as a subscriber to MODNET, a few local sysops who do not subscribe to
  24.  it on their own system call my BBS to capture mods.  Well one day Metalix,
  25.  who kept asking me to extract and upload mods to his BBS, finally said.
  26.  "Mod Idea, something to allow me to download messages so I won't have to keep
  27.  asking you to send them to me."  I remember seeing mods like this for 4.23,
  28.  but I never installed one... so I finally tinkered around and came up with
  29.  this.  It may be a bit sloppy, but give me a break, I have about 5 mods and
  30.  none of them are that complex:)
  31.  
  32.  Revision A:
  33.  
  34.     ■  Writes to sysoplog
  35.     ■  Asks user what to name the file, instead of previous MSGxx.  This was
  36.        suggested by Prince (1@10213.wwivnet)
  37.  ─[Disclaimer]───────────────────────────────────────────────────────────────
  38.  Back up the code this is a ZF mod...
  39.  
  40.  ─[Step 1]───────────────────────────────────────────────────────────────────
  41.  
  42. Open up MSGBASE1.C
  43.  
  44. In "void scan(int msgnum, int optype, int *nextsub)" before "case '?':"
  45. add this block of code:
  46.  
  47. /*zf-6 DL MSG*/
  48.             case '$':
  49.                 p2=*get_post(msgnum);
  50.                 grab_quotes(&(p2.msg),subboards[curlsub].filename);
  51.                 sprintf(s, "%s\\QUOTES.TXT", syscfgovr.tempdir);
  52.                 npr("9Save message as1? 7");0
  53.                 input(s4,8);
  54.                 sprintf(s1, "%s\\%s.msg",syscfgovr.tempdir,s4);
  55.                 copy_file(s, s1);
  56.                 add_arc(s4, s1, 1);
  57.                 download_temp_arc(s4, 0);
  58.                 sprintf(s, "Downloaded Message: %s [%s]",irt,subboards[usub[cur
  59. sub].subnum].name);
  60.                 sysoplog(s);
  61.                 sprintf(s, "%s.*",s4);
  62.                 remove_from_temp(s, syscfgovr.tempdir, 0);
  63.                 resynch(cursub, &msgnum, &p2);
  64.                 grab_quotes(NULL, NULL);
  65.                 restore_msg_menu();
  66.                 break;
  67. /*zf-6:end block*/
  68.  
  69. ─[Step 2]────────────────────────────────────────────────────────────────────
  70.  
  71. Open up READMAIL.C
  72.  
  73. Under "void readmail(void)" insert this case after "case '?':"
  74.  
  75. /*zf-6 DL MAIL*/
  76.         case '$':
  77.             grab_quotes(&(m.msg),"EMAIL");
  78.             sprintf(s, "%s\\QUOTES.TXT", syscfgovr.tempdir);
  79.             npr("9Save message as1? 7");0
  80.             input(s2,8);
  81.             sprintf(s1, "%s\\%s.eml",syscfgovr.tempdir,s2);
  82.             copy_file(s, s1);
  83.             add_arc(s2, s1, 1);
  84.             download_temp_arc(s2, 0);
  85.             sprintf(s, "Downloaded E-mail: %s",m.title);
  86.             sysoplog(s);
  87.             sprintf(s, "%s.*",s2);
  88.             remove_from_temp(s, syscfgovr.tempdir, 0);
  89.             grab_quotes(NULL, NULL);
  90.             break;
  91. /*zf-6:end block*/
  92.  
  93. ─[Step 3]────────────────────────────────────────────────────────────────────
  94.  
  95. Still in READMAIL.C
  96.  
  97. Towards the beginning of "void readmail(void)" where the commands are listed
  98. moddify code as such:
  99.  
  100. =      if (so()) {
  101. =        if (sysinfo.flags & OP_FLAGS_MAIL_PROMPT)
  102. =          npr(get_string(1365));
  103. *        ch=onek("QSRIDAMF$?-+GEZPVUOLCN"); //add "$"
  104. =      } else {
  105. =        if (cs()) {
  106. =          if (sysinfo.flags & OP_FLAGS_MAIL_PROMPT)
  107. =            npr(get_string(1366));
  108. *          ch=onek("QSRIDAMF$?-+GZPVUOC"); //add "$"
  109. =        } else {
  110. =          if (!okmail) {
  111. =            if (sysinfo.flags & OP_FLAGS_MAIL_PROMPT)
  112. =              npr(get_string(1367));
  113. =            ch=onek("QI?-+G");
  114. =          } else {
  115. =            if (sysinfo.flags & OP_FLAGS_MAIL_PROMPT)
  116. =              npr(get_string(1368));
  117. *            ch=onek("QSRIDAMF$?+-G"); //add "$"
  118. =          }
  119. =        }
  120. =      }
  121. =      if (okmail && !read_same_email(mloc, mw, curmail, &m, 0, 0)) {
  122.  
  123. ─[Step 4]────────────────────────────────────────────────────────────────────
  124.  
  125. Do a MAKE.  You finish... can go home now...
  126.  
  127. ─[Closing]───────────────────────────────────────────────────────────────────
  128. Please E-mail me if you use this mod.  If you need me to modify it
  129. specifically for you or you need help I can help you just e-mail me at one
  130. of the addresses below (ehh it's in order from favorite to least).
  131.  
  132. Internet: uaslabs@bmn.net
  133. or      : swan0322@maroon.tc.umn.edu
  134. WWIVnet : 1@10141
  135. ICEnet  : 1@6293
  136.  
  137. /┤lpha-1 Republic: 612-988-0828
  138.