]> code.citadel.org Git - citadel.git/commitdiff
* Generate and send subscription confirmation requests.
authorArt Cancro <ajc@citadel.org>
Tue, 13 Aug 2002 18:48:46 +0000 (18:48 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 13 Aug 2002 18:48:46 +0000 (18:48 +0000)
  (Still need to finalize the URL format)

citadel/ChangeLog
citadel/serv_listsub.c

index b47a450abc5cc9a15fd3eeeb6ea35551fd09039e..c52e1f947e0299925d6061cc13d83d71f989b6a0 100644 (file)
@@ -1,4 +1,8 @@
  $Log$
+ Revision 591.91  2002/08/13 18:48:46  ajc
+ * Generate and send subscription confirmation requests.
+   (Still need to finalize the URL format)
+
  Revision 591.90  2002/08/13 17:19:11  ajc
  * Added email capability to quickie_message()
 
@@ -3897,3 +3901,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
+
index 7995ed540fda91f6d878519ec1c0a7ae78f9c35b..110813bdf949a5d183e9934c7eab7fa9795096a5 100644 (file)
@@ -87,6 +87,7 @@ void do_subscribe(char *room, char *email, char *subtype) {
        FILE *ncfp;
        char filename[SIZ];
        char token[SIZ];
+       char confirmation_request[SIZ];
 
        if (getroom(&qrbuf, room) != 0) {
                cprintf("%d There is no list called '%s'\n", ERROR, room);
@@ -109,7 +110,27 @@ void do_subscribe(char *room, char *email, char *subtype) {
        }
        end_critical_section(S_NETCONFIGS);
 
-       /* FIXME  --  generate and send the confirmation request */
+       /* Generate and send the confirmation request */
+
+       snprintf(confirmation_request, sizeof confirmation_request,
+               "Someone (probably you) has submitted a request to subscribe\n"
+               "<%s> to the '%s' mailing list.\n\n"
+               "In order to confirm this subscription request, please\n"
+               "point your web browser at the following location:\n\n"
+               "http://FIXME.com:FIXME/blah?room=%s&token=%s\n\n"
+               "If this request has been submitted in error and you do not\n"
+               "wish to receive the '%s' mailing list, simply do nothing,\n"
+               "and you will not receive any further mailings.\n",
+
+               email, qrbuf.QRname, qrbuf.QRname, token, qrbuf.QRname
+       );
+
+       quickie_message(
+               "Citadel",
+               email,
+               qrbuf.QRname,
+               confirmation_request
+       );
 
        cprintf("%d Subscription entered; confirmation request sent\n", CIT_OK);