home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / NI-017.ZIP / NI-017.424 < prev   
Encoding:
Text File  |  1995-07-11  |  5.1 KB  |  177 lines

  1. Johnny Five #26 @15301
  2. Fri Jul 07 13:30:35 1995
  3. ╒NI Header (c)══════════════════════════════════════════════════════════════╕
  4. │       N O V A   I N D U S T R I E S  B B S  9 0 4 - 2 6 0 - 2 3 9 4       │
  5. ╞═══════════════════════════════════════════════════════════════════════════╡
  6. │ Mod Name  : NI-017.424          Author: Johnny Five 1 @1 ExcelNet         │
  7. │                                                     1 @9403 CCNet         │
  8. │ Difficulty: Can you say "Block Copy"?               1 @205 SteelNet       │
  9. │                                                     1 @9411 TFAlink       │
  10. │ Version   : 4.24  Date: 07-07-95                    and many others       │
  11. │                                                                           │
  12. │ Files Affected: READMAIL.C                                                │
  13. │                                                                           │
  14. │ Description:  DREAM49A.MOD updated for 4.24 requires  NICommon            │
  15. │ better void readmail                                                      │
  16. ╘═══════════════════════════════════════════════════════════════════════════╛
  17.  
  18.  
  19.  
  20.  
  21. = Already there
  22. + add
  23. - Remove
  24. * change
  25.  
  26.  
  27. Step 1: B(ack).U(p).Y(our).S(ource).
  28.  
  29. Step 2: Add these 2 #defines to the top of the file.
  30.  
  31. #define BOX DGRAY          // Color of the box
  32. #define TIMESTRING DYELLOW // Color of bottom time string
  33.  
  34.  
  35. Step 3: Add these defines right before void readmail(void)
  36.  
  37. #define MAILNUMCOLOR DYELLOW    // Color if the mail number indicator
  38. #define FROMCOLOR LCYAN         // Color of the 'from' field
  39. #define MAILTITLECOLOR DCYAN    // Color of the mail title
  40. #define MAIL_WHO_FIELD_LEN2 63  // DO NOT change!
  41.  
  42.  
  43. Step 4: In void readmail(void), add the following line..
  44.  
  45. =  int i,i1,i2,f,mw,mfl,curmail,done,abort=0,next,okmail,tp,nn;
  46. =  unsigned short xx;
  47. =  char s[201],s1[205],s2[81],*b,*ss1;
  48. +  char st1[81], st2[81], st3[81], st4[81], st5[40];  // For dream49
  49. =  mailrec m, m1;
  50.  
  51.  
  52. Step 5: Open up READMAIL.C and replace everything from
  53.  
  54.     pl(get_string(703));
  55.     nl();
  56.  
  57.     .....  to  .....
  58.  
  59.     helpl=10;
  60.     pl(get_string(705));
  61.  
  62. with this chunk...
  63.  
  64.     pl(get_string(703));
  65.     nl();
  66.     if (okansi()) {
  67.      sprintf(st1,"%s", charstr(31,'─'));
  68.      sprintf(st2,"%s", charstr(41,'─'));
  69.      sprintf(st3,"%s", charstr(24,'─'));
  70.     } else {
  71.      sprintf(st1,"%s", charstr(31,'-'));
  72.      sprintf(st2,"%s", charstr(41,'-'));
  73.      sprintf(st3,"%s", charstr(24,'-'));
  74.     }
  75.     dream_header("R e a d  M a i l","",1);
  76.     if (okansi())
  77.      npr("%s╔───╦%s╦%s╗\r\n", BOX, st1, st2);
  78.     else
  79.      npr("+---+%s+%s+\r\n", st1, st2);
  80.     ansic(0);
  81.     for (i=0; ((i<mw) && (!abort)); i++) {
  82.       if (!read_same_email(mloc, mw, i, &m, 0))
  83.     continue;
  84.       tp=80;
  85.       if (m.status & status_source_verified)
  86.     tp -= 2;
  87.       if (m.status & status_new_net) {
  88.     tp -= 1;
  89.     if (strlen(m.title)<=tp) {
  90.       nn=(unsigned char) m.title[tp+1];
  91.     } else
  92.       nn=0;
  93.       } else
  94.     nn=0;
  95.      if (okansi())
  96.       sprintf(s,"%s│%s%3d%s│%s ", BOX, MAILNUMCOLOR, i+1, BOX, FROMCOLOR);
  97.      else
  98.       sprintf(s,"|%3d| ", i+1);
  99.       if ((m.anony & anony_sender) && ((ss.ability & ability_read_email_anony)=
  100. =0)) {
  101.     strcat(s,get_string(482));
  102.       } else {
  103.     if (m.fromsys==0) {
  104.       if (m.fromuser==65535) {
  105.         if (nn!=255)
  106.           strcat(s,net_networks[nn].name);
  107.       } else {
  108.         read_user(m.fromuser,&u);
  109.         strcat(s,nam(&u,m.fromuser));
  110.       }
  111.     } else {
  112.       set_net_num(nn);
  113.       csne=next_system(m.fromsys);
  114.       if (csne)
  115.         ss1=csne->name;
  116.       else
  117.         ss1=get_string(622);
  118.       if (nn==255) {
  119.         sprintf(s1,"%s #%u @%u",get_string(704), m.fromuser,m.fromsys);
  120.       } else {
  121.         if (net_num_max>1)
  122.           sprintf(s1,"%s #%u @%u (%s)",
  123.         net_networks[nn].name,m.fromuser,m.fromsys,ss1);
  124.         else
  125.           sprintf(s1,"%s %u @%u (%s)",get_string(658), m.fromuser,m.fromsys,ss1);
  126.       }
  127.       strcat(s,s1);
  128.     }
  129.       }
  130.       if (thisuser.screenchars >= 80) {
  131.        if (okansi()) {
  132.     if (strlen(stripcolors(s))>MAIL_WHO_FIELD_LEN2)
  133.       while (strlen(stripcolors(s))>MAIL_WHO_FIELD_LEN2)
  134.         s[strlen(s)-1]=0;
  135.     } else {
  136.     if (strlen(stripcolors(s))>MAIL_WHO_FIELD_LEN)
  137.       while (strlen(stripcolors(s))>MAIL_WHO_FIELD_LEN)
  138.         s[strlen(s)-1]=0;
  139.     }
  140.     if (okansi())
  141.      strcat(s,charstr((MAIL_WHO_FIELD_LEN2+1)-strlen(stripcolors(s)),' '));
  142.     else
  143.      strcat(s,charstr((MAIL_WHO_FIELD_LEN+1)-strlen(stripcolors(s)),' '));
  144.     if (okansi()) {
  145.       sprintf(st4,"%s│%s", BOX, MAILTITLECOLOR);
  146.       strcat(s,st4);
  147.     } else
  148.       strcat(s,"|");
  149.     strcat(s," ");
  150.     strncpy(st5,stripcolors(m.title),39);
  151.     st5[39]='\0';
  152.     strcat(s,st5);
  153.       }
  154.       if (okansi())
  155.        npr("%-120s%s│\r\n", s, BOX);
  156.       else
  157.        npr("%-78s|\r\n", s);
  158.     }
  159.     if (okansi())
  160.      npr("%s╚───╩%s╩%s%s■ %s%s %s■%s──╝\r\n",
  161.       BOX, st1, st3, DCYAN, TIMESTRING, drmtimes(), DCYAN, BOX);
  162.     else
  163.      npr("+---+%s+%so %s o--+\r\n", st1, st3, drmtimes());
  164.     ansic(0);
  165.     nl();
  166.     helpl=10;
  167.     pl(get_string(705));
  168.  
  169.  
  170. Save READMAIL.C and recompile.
  171.  
  172.  
  173.  
  174.           Email me with problems, suggestions, etc...
  175.  
  176.                     Enjoy!
  177.