Fixed a bug in the new aliasing code that broke mail to rooms with spaces in their...
[citadel.git] / citadel / modules / ctdlproto / serv_messages.c
index 11d61e946fde24f569e74a510aa772afad6aa176..af40c304b1ae2b341e6bd391f229114a5bbe9888 100644 (file)
@@ -639,12 +639,9 @@ void cmd_ent0(char *entargs) {
        }
        free(all_recps);
 
-       if ((valid != NULL) && (valid->num_room == 1) && !IsEmptyStr(valid->recp_orgroom))
-       {
-               /* posting into an ML room? set the envelope from 
-                * to the actual mail address so others get a valid
-                * reply-to-header.
-                */
+       // posting into a mailing list room? set the envelope from 
+       // to the actual mail address so others get a valid reply-to-header.
+       if ((valid != NULL) && (valid->num_room == 1) && !IsEmptyStr(valid->recp_orgroom)) {
                CM_SetField(msg, eenVelopeTo, valid->recp_orgroom, strlen(valid->recp_orgroom));
        }