diff --git a/TODO b/TODO index 11b2f3fc..98215de9 100644 --- a/TODO +++ b/TODO @@ -180,5 +180,4 @@ mbsetup: Fileechos <=> Hatch Newfiles <=> BBS Areas Newfiles <=> Newfiles groups - Echomail groups <=> Nodes diff --git a/mbsetup/m_mgroup.c b/mbsetup/m_mgroup.c index 1cf9fab7..5c5fcd40 100644 --- a/mbsetup/m_mgroup.c +++ b/mbsetup/m_mgroup.c @@ -639,55 +639,164 @@ char *PickMGroup(char *shdr) int mail_group_doc(FILE *fp, FILE *toc, int page) { - char temp[PATH_MAX]; - FILE *no; - int j; + char temp[PATH_MAX], group[13]; + FILE *ti, *wp, *ip, *no; + int refs, i, j; - sprintf(temp, "%s/etc/mgroups.data", getenv("MBSE_ROOT")); - if ((no = fopen(temp, "r")) == NULL) - return page; + sprintf(temp, "%s/etc/mgroups.data", getenv("MBSE_ROOT")); + if ((no = fopen(temp, "r")) == NULL) + return page; - addtoc(fp, toc, 9, 1, page, (char *)"Mail processing groups"); - j = 0; - fprintf(fp, "\n"); + addtoc(fp, toc, 9, 1, page, (char *)"Mail processing groups"); + j = 0; + fprintf(fp, "\n"); - fread(&mgrouphdr, sizeof(mgrouphdr), 1, no); - fseek(no, 0, SEEK_SET); - fread(&mgrouphdr, mgrouphdr.hdrsize, 1, no); + fread(&mgrouphdr, sizeof(mgrouphdr), 1, no); + fseek(no, 0, SEEK_SET); + fread(&mgrouphdr, mgrouphdr.hdrsize, 1, no); - while ((fread(&mgroup, mgrouphdr.recsize, 1, no)) == 1) { - if (j == 2) { - page = newpage(fp, page); - fprintf(fp, "\n"); - j = 0; - } - - fprintf(fp, " Group name %s\n", mgroup.Name); - fprintf(fp, " Comment %s\n", mgroup.Comment); - fprintf(fp, " Active %s\n", getboolean(mgroup.Active)); - fprintf(fp, " Use Aka %s\n", aka2str(mgroup.UseAka)); - fprintf(fp, " Uplink %s\n", aka2str(mgroup.UpLink)); - fprintf(fp, " Areas file %s\n", mgroup.AreaFile); - fprintf(fp, " Base path %s\n", mgroup.BasePath); - fprintf(fp, " Netmail reply area %d\n", mgroup.NetReply); - fprintf(fp, " Start new areas at %d\n", mgroup.StartArea); - fprintf(fp, " Read security %s\n", get_secstr(mgroup.RDSec)); - fprintf(fp, " Write security %s\n", get_secstr(mgroup.WRSec)); - fprintf(fp, " Sysop security %s\n", get_secstr(mgroup.SYSec)); - fprintf(fp, " Def. link security %s\n", getflag(mgroup.LinkSec.flags, mgroup.LinkSec.notflags)); - fprintf(fp, " Use aliases %s\n", getboolean(mgroup.Aliases)); - fprintf(fp, " Add quotes %s\n", getboolean(mgroup.Quotes)); - fprintf(fp, " Auto add/del areas %s\n", getboolean(mgroup.AutoChange)); - fprintf(fp, " User add/del areas %s\n", getboolean(mgroup.UserChange)); - fprintf(fp, " Default charset %s\n", getchrs(mgroup.Charset)); - fprintf(fp, " Start area date %s", ctime(&mgroup.StartDate)); - fprintf(fp, " Last active date %s\n", ctime(&mgroup.LastDate)); - fprintf(fp, "\n\n"); - j++; + ip = open_webdoc((char *)"msggroup.html", (char *)"Message Groups", NULL); + fprintf(ip, "Main\n"); + fprintf(ip, "\n"); + close_webdoc(ip); + + fclose(no); + return page; } diff --git a/mbsetup/mbsetup.c b/mbsetup/mbsetup.c index 1b490852..a3e23ad1 100644 --- a/mbsetup/mbsetup.c +++ b/mbsetup/mbsetup.c @@ -244,7 +244,7 @@ void site_docs(void) fprintf(hp, "
  • BBS: File Areas
  • \n"); fprintf(hp, "
  • BBS: Transfer Protocols
  • \n"); fprintf(hp, "
  • BBS: Oneliners
  • \n"); - fprintf(hp, "
  • Mail: Echomail Groups
  • \n"); + fprintf(hp, "
  • Mail: Echomail Groups
  • \n"); fprintf(hp, "
  • Mail: Echomail Areas
  • \n"); fprintf(hp, "
  • TIC: FileEcho Groups
  • \n"); fprintf(hp, "
  • TIC: Fileecho Areas
  • \n");