]> code.citadel.org Git - citadel.git/blobdiff - citadel/internet_addressing.c
* Reworked some of the data structures to handle multiple recipients
[citadel.git] / citadel / internet_addressing.c
index 1eda2ae400d92fa8a0641474e4e95093bf366d1d..0068ee32f8ea2f314ada53d5cdb8bbb3f001f7b8 100644 (file)
@@ -252,13 +252,6 @@ int convert_internet_address(char *destuser, char *desthost, char *source)
                strcpy(node, config.c_nodename);
        }
 
-       /* Return an error condition if the node is not known.
-        * FIX ... make this work for non-local systems
-        */
-       if (strcasecmp(node, config.c_nodename)) {
-               return(rfc822_address_invalid);
-       }
-       
        /* Now try to resolve the name
         * FIX ... do the multiple-addresses thing
         */
@@ -273,6 +266,8 @@ int convert_internet_address(char *destuser, char *desthost, char *source)
                return(rfc822_address_locally_validated);
        }
 
+       strcpy(destuser, user);
+       strcpy(desthost, node);
        return(rfc822_address_invalid); /* unknown error */
 }