home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
MODSUNKN.ZIP
/
MAILTITL.MOD
< prev
next >
Wrap
Text File
|
1990-03-19
|
4KB
|
122 lines
Parker Prospect #1 @9964
Sat Mar 17 10:07:09 1990
Add titles to read mail! This is sort of an out-of-the-way mod, but you may
like is. I saw this done on Social Graces (@9954), but I couldn't find the
mod anywhere. So guess what? I wrote it myself.
This mod will print UP TO 40 characters of the title (Yes, it does take
into account colored titles--to a degree) when the user reads his mail
(both at the 'M' prompt and when he first logs on). It lists the username
that the mail is from (just like it always does), then it spaces to column
41 (I have a soft spot in my heart for C64/128 users), where it prints most
of the title. Happy modding!
Example:
Hit return or enter number.
:
You have mail from:
GARATH #12 "Validation"
1 @9972 "Jeff, my BBS crashed again"
21 @9971 "Access to your net RPG"
************************************
************** Legend **************
************************************
* %% Delete Line *
* -- Search for Line, DON'T CHANGE *
* ++ Add Line *
* -+ Modify Line *
************************************
------------------------------------------------------------------------
Step #1
Look for "void readmail" in the file MSGBASE1.C. Change the following
code using the legend shown above.
-- char s[81],s1[81],s2[81],fn[81],*b;
-- mailrec m;
-- slrec ss;
-- userrec u;
-- char ch;
-- long len;
++ char work[81];
++ size_t namelen;
++ int counter;
-- ss=syscfg.sl[thisuser.sl];
-- strcpy(fn,&(syscfg.datadir[0]));
-- strcat(fn,"EMAIL.DAT");
-- f=open(fn,O_RDWR | O_BINARY | O_CREAT, S_IREAD | S_IWRITE);
-- if (f<0) {
------------------------------------------------------------------------
Step #2
Scan down a little farther until you find this code (also in "void
readmail"). Again, change according the the legend above...
-- } else {
-- sprintf(s1,"User %d @%d",m.fromuser,m.fromsys);
-- strcat(s,s1);
-- }
-- }
++ prt(0, s);
++ work[0]=0;
++ namelen=strlen(s);
++ s[0]=0;
++ for (counter=namelen; counter<42; counter++)
++ strcat(work, " ");
++ prt(0, work);
++ strcpy(work, m.title);
++ work[36]=0;
++ if (work[35]==3) {
++ work[36]=48;
++ work[37]=0;
++ }
++ s[0]=34;
++ s[1]=0;
++ strcat(s, work);
++ namelen=strlen(s);
++ s[namelen]=34;
++ s[namelen+1]=0;
-- pl(s);
-- }
-- nl();
-- helpl=10;
-- pl("Hit return, or enter number");
-- outstr(":");
------------------------------------------------------------------------
Step #3
[Told ya it was a short mod] - Compile and run!
------------------------------------------------------------------------
Disclaimer
I, Jeff Garzik, claim no liability for this mod, or for any damage that
may have resulted from the use of this mod. I also attach no
warranty, expressed OR implied, to this product.
BTW, if you like this mod, 6PLEASE0 send me a donation of $5 or more. I
am trying to save up for a USR 9600 HST, and being a 15-year-old high
school sophomore, I need all the support I can get.
Send donations to:
Jeff Garzik
117 Harrell St
Greenville, NC 27858
or call my board
The East Carolina Connection
919-756-2939 :::: 1200 baud (temporary)
24hrs
Autovalidation of WWIV sysops (first call)
Thanks Wayne for writing such great software!