home *** CD-ROM | disk | FTP | other *** search
- Nicolas Leblanc #2 @20302
- Tue Jun 06 02:04:32 1995
- 0R 34 06/09 07:13 WWIVNET 4051->8421
- 0R 34 06/08 18:18 WWIVNet 4001->4051
- 0R 34 06/08 14:07 WWIVnet 4000->4001
- 0R 34 06/08 05:34 WWIVnet ->4000
- 0R 34 06/07 01:09 WWIVnet 4001->4000
- 0R 34 06/07 07:32 WWIVnet 20001->4001
- 0R 34 06/06 02:14 WWIVnet 20302->20001
- 0R 34 06/06 02:10 WWIVnet ->20302
-
- ┌┬─── ── ─ ─ ── ───────────────────────────────────────────────────┬─ ∙∙
- ││ Alternative Worlds Presents │
- └┼─────────────────────────────────────────────────────────────────────┐
- ││ Mod Name » FMD-17a.MOD │∙
- ││ Difficulty » ██▒▒▒▒▒▒▒▒▒ (1/10) │:
- ││ WWIV Version » 4.24 ││
- ││ Date Affected » 06/01/95 ││
- :│ Files Affected » LILO.C ││
- ∙│ Description » New Mailbox Scan With New and Old Mail. ││
- └─────────────────────────────────────────────────────────────────────┼┐
- │ A French Mod Division Release - (C) 1995 FMD Software ││
- ∙∙ ─┴─────────────────────────────────────────────────── ── ─ ─ ── ───└┘
-
- ┌┬══════════════════┐
- ││ Long Description ││
- └══════════════════┴┘
-
- This modification will allow you, the SysOp, to stop being bugged by the
- annoying situation that WWIV is always asking to you if you want to read your
- mail or not, but there is no new mail in your mailbox, so instead of having
- a second mailbox, you can use this modification. That is just a situation,
- your user will love it also! This modification will ask you if you want to
- read your mail ONLY when you have NEW mail waiting, else it will only put
- a notice that you have mail in your mailbox. Of course it will always tell
- you how many new mail or how many old mail is in your mailbox.
-
- Revision A:
-
- - Updated for WWIV v4.24
-
- ┌┬═══════┐
- ││ Tests ││
- └═══════┴┘
-
- This modification has been tested on a virgin WWIV v4.24 source using
- Borland C++ v4.5
-
- ──────────────────────────────────────────────────────────────────────────────
- Legend
- ╔═══╤══════════════════┐
- │ + │ Add This Line │
- │ - │ Delete This Line │
- │ * │ Modify This Line │
- │ = │ Existing Line │
- └═══╧══════════════════╝
- ───[Step 1]────────────────────────────────────────────────────────────────────
-
- Load LILO.C, search for this line in function void logon(); and make the changes
- yourself (change the code there). Be sure to delete the part of readmail
- already there between the 2 existing lines.
-
-
- = void logon(void)
- = {
- = char s[255],s1[181],s2[81],*ss;
- = char speed[40],ch;
- * int i,i1,dv,win,f,mw,mfl,newmail;
- = long len,pos;
- = long l;
- + mailrec m;
- =
-
- And then lower in the code...
-
- = topscreen();
- = create_chain_file();
- = rsm(usernum,&thisuser,1);
- + npr("9Scanning For 1Personnal Mail9...");
- = if (thisuser.waiting) {
- + newmail=0;
- + f=open_email(0);
- + mfl=filelength(f)/sizeof(mailrec);
- + mw=0;
- + for (i=0; (i<mfl) && (mw<MAXMAIL); i++)
- + {
- + sh_lseek(f,((long) (i)) * (sizeof(mailrec)), SEEK_SET);
- + sh_read(f,(void *)(&m),sizeof(mailrec));
- + if ((m.tosys==0) && (m.touser==usernum))
- + {
- + if (!(m.status & status_seen))
- + newmail++;
- + }
- + }
- + f=sh_close(f);
- + pl("1 Found some!");
- + if (newmail)
- + {
- + npr("9You Have 1%d 9New E-Mail Waiting.\r\n\r\n",newmail);
- = if (menu_on()) {
- = printmenu(324);
- = rip_popup = 0; /* Disable the Yes/No prompt */
- = } else
- = prt(9,get_string(377));
- * if (ny()) {
- = if (rip_on()) {
- = rip_cls();
- = //rmenu = 300;
- = }
- = readmail();
- = }
- * } else {
- + npr("9You have 1%d 9old messages in your mailbox.\r\n",thisuser.waiting);
- + npr("9Use the mailbox command in the main menu to read it.\r\n");
- + }
- + } else
- + pl(" 9None found.");
- = }
- = if (rip_on()) {
- = rip_popup = -1; /* Re-enable */
- = cleared = -1;
- = }
- = nscandate=thisuser.daten;
- = batchtime=0.0;
-
-
- Save LILO.C
-
-
- ───[Step 6]────────────────────────────────────────────────────────────────────
-
-
- Just compile back your source and enjoy the change. A nice and easy
- modification once again to enhance your bulletin board. You need to compile
- the whole board (sorry).
-
- French Proverb: Après la pluie, le beau temps.
-
- For comments, bug report and suggestion, e-mail at the following address:
-
- Nicolas LeBlanc 2@20302.WWIVnet (aka Spotnick)
- -> spotnick@gamemaster.qc.ca
- Martin Bourdages 242@20306 / 3@20302.WWIVnet (aka Dark Shadow)
- -> martin.bourdages@radio.magicnet.com
-
- => French Mod Division Support Sub <=
- SubType: FMD
- Host: @20302 (WWIVnet)
- Scan sublist for other networks
-
- Read PRODUCTS.FMD for the full list of our support systems.
-
- ───[EOF]──────────────────────────────────────────────────────────────────────