]> code.citadel.org Git - citadel.git/commitdiff
* Added email capability to quickie_message()
authorArt Cancro <ajc@citadel.org>
Tue, 13 Aug 2002 17:19:12 +0000 (17:19 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 13 Aug 2002 17:19:12 +0000 (17:19 +0000)
citadel/ChangeLog
citadel/msgbase.c

index 6db57b950fa7d566e4b2377e4f48e73df92bc1e0..b47a450abc5cc9a15fd3eeeb6ea35551fd09039e 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 591.90  2002/08/13 17:19:11  ajc
+ * Added email capability to quickie_message()
+
  Revision 591.89  2002/08/13 04:02:06  ajc
  * <R>eplace string is now case sensitive
 
@@ -3894,4 +3897,3 @@ 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 b8498a53680d53af4c2ecb25be75cd5bc2491e78..c10ad6159ae92adaf3212c841e350958486ecfcc 100644 (file)
@@ -2139,6 +2139,7 @@ long CtdlSubmitMsg(struct CtdlMessage *msg,       /* message to save */
 void quickie_message(char *from, char *to, char *room, char *text)
 {
        struct CtdlMessage *msg;
+       struct recptypes *recp = NULL;
 
        msg = mallok(sizeof(struct CtdlMessage));
        memset(msg, 0, sizeof(struct CtdlMessage));
@@ -2148,13 +2149,15 @@ void quickie_message(char *from, char *to, char *room, char *text)
        msg->cm_fields['A'] = strdoop(from);
        msg->cm_fields['O'] = strdoop(room);
        msg->cm_fields['N'] = strdoop(NODENAME);
-       if (to != NULL)
+       if (to != NULL) {
                msg->cm_fields['R'] = strdoop(to);
+               recp = validate_recipients(to);
+       }
        msg->cm_fields['M'] = strdoop(text);
 
-       CtdlSubmitMsg(msg, NULL, room);
+       CtdlSubmitMsg(msg, recp, room);
        CtdlFreeMessage(msg);
-       syslog(LOG_NOTICE, text);
+       if (recp != NULL) phree(recp);
 }