From: Art Cancro Date: Tue, 11 Dec 2001 16:02:41 +0000 (+0000) Subject: * Completed support for add/remove mailing list recipients. X-Git-Tag: v7.86~6695 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=c8db37606c24029edbed9b23bfdda0e902b1c5d9;p=citadel.git * Completed support for add/remove mailing list recipients. --- diff --git a/webcit/ChangeLog b/webcit/ChangeLog index d8f16b40a..ad8b68168 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,7 @@ $Log$ +Revision 301.16 2001/12/11 16:02:40 ajc +* Completed support for add/remove mailing list recipients. + Revision 301.15 2001/12/11 15:22:53 ajc * Began constructing the listserv screen for config (not tested) @@ -656,3 +659,4 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix + diff --git a/webcit/README.txt b/webcit/README.txt index 4dd93b196..554f2caea 100644 --- a/webcit/README.txt +++ b/webcit/README.txt @@ -1,5 +1,5 @@ WEBCIT for the Citadel/UX System - version 3.01 + version 3.10 Copyright (C) 1996-2001 by the authors. Portions written by: Art Cancro diff --git a/webcit/roomops.c b/webcit/roomops.c index 4af0ac68e..754bc28b0 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -929,7 +929,7 @@ void display_editroom(void) /* Mailing list management */ if (!strcmp(tab, "listserv")) { - wprintf("
The contents of this room are being " + wprintf("
The contents of this room are being " "mailed to the following list recipients:" "

\n"); @@ -948,6 +948,12 @@ void display_editroom(void) } } + wprintf("
\n" + "\n" + "\n"); + wprintf("\n"); + wprintf(""); + wprintf("

\n"); } wDumpContent(1); @@ -1486,6 +1492,16 @@ void delete_room(void) void netedit(void) { FILE *fp; char buf[SIZ]; + char line[SIZ]; + + if (strlen(bstr("line"))==0) { + display_editroom(); + return; + } + + strcpy(line, bstr("prefix")); + strcat(line, bstr("line")); + strcat(line, bstr("suffix")); fp = tmpfile(); if (fp == NULL) { @@ -1503,7 +1519,7 @@ void netedit(void) { /* This loop works for add *or* remove. Spiffy, eh? */ while (serv_gets(buf), strcmp(buf, "000")) { - if (strcasecmp(buf, bstr("line"))) { + if (strcasecmp(buf, line)) { fprintf(fp, "%s\n", buf); } } @@ -1523,7 +1539,7 @@ void netedit(void) { } if (!strcasecmp(bstr("cmd"), "add")) { - serv_puts(bstr("line")); + serv_puts(line); } serv_puts("000"); diff --git a/webcit/webcit.c b/webcit/webcit.c index 0fd956994..8aa27b7ca 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -237,13 +237,13 @@ void escputs(char *strbuf) /* * Escape a string for feeding out as a URL. - * FIXME this is not threadsafe! + * FIXME ... not threadsafe! */ char *urlesc(char *strbuf) { int a, b, c; char *ec = " #&;`'|*?-~<>^()[]{}$\\"; - static char outbuf[1024]; + static char outbuf[SIZ]; strcpy(outbuf, ""); diff --git a/webcit/webcit.h b/webcit/webcit.h index 3062a0416..ae26ff624 100644 --- a/webcit/webcit.h +++ b/webcit/webcit.h @@ -10,7 +10,7 @@ #define SERVER "WebCit v3.01" /* who's in da house */ #define DEVELOPER_ID 0 #define CLIENT_ID 4 -#define CLIENT_VERSION 301 +#define CLIENT_VERSION 310 #define DEFAULT_HOST "localhost" /* Default Citadel server */ #define DEFAULT_PORT "504" #define LB (1) /* Internal escape chars */