]> code.citadel.org Git - citadel.git/commitdiff
* When delivering list digests, put the name of the room in [brackets]
authorArt Cancro <ajc@citadel.org>
Sun, 12 Jun 2005 03:24:16 +0000 (03:24 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 12 Jun 2005 03:24:16 +0000 (03:24 +0000)
  in the subject line.  This makes lots of other software happy.  (We
  need to do this for non-digest list subscribers too.)

citadel/ChangeLog
citadel/serv_network.c

index 3c075a6498beaf2fdf2d20d15a0eff90808577d6..7d417c34f093506b65a101b5c1b713e28fb2cd46 100644 (file)
@@ -6764,4 +6764,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 8419df9d09698359c037e25cc0129e04b8a03955..867fabb22cc9c8db7929c3f7e72a6a5f51ec642e 100644 (file)
@@ -780,7 +780,8 @@ void network_deliver_digest(struct SpoolControl *sc) {
        sprintf(buf, "%ld", time(NULL));
        msg->cm_fields['T'] = strdup(buf);
        msg->cm_fields['A'] = strdup(CC->room.QRname);
-       msg->cm_fields['U'] = strdup(CC->room.QRname);
+       snprintf(buf, sizeof buf, "[%s]", CC->room.QRname);
+       msg->cm_fields['U'] = strdup(buf);
        sprintf(buf, "room_%s@%s", CC->room.QRname, config.c_fqdn);
        for (i=0; i<strlen(buf); ++i) {
                if (isspace(buf[i])) buf[i]='_';