]> code.citadel.org Git - citadel.git/blobdiff - citadel/internet_addressing.c
Do not attempt to search for database records of length 0.
[citadel.git] / citadel / internet_addressing.c
index f5d938be755be7eb6a384ef8305828abaa0d0803..db9e776ad27b17933b6f86c86aafa7ea37987a63 100644 (file)
@@ -313,8 +313,7 @@ int CtdlHostAlias(char *fqdn) {
 /*
  * Determine whether a given Internet address belongs to the current user
  */
-int CtdlIsMe(char *addr, int addr_buf_len)
-{
+int CtdlIsMe(char *addr, int addr_buf_len) {
        struct recptypes *recp;
        int i;
 
@@ -390,12 +389,6 @@ enum {
        EA_LOCAL,               // Local message, do no network processing
        EA_INTERNET             // Convert msg and send as Internet mail
 };
-char *killo[] = {              // FIXME remove this when diags are complete
-       "error",
-       "multiple",
-       "local",
-       "internet"
-};
 
 
 // Process alias and routing info for email addresses
@@ -406,6 +399,8 @@ int expand_aliases(char *name) {
        char node[64];
        char *t;
 
+       syslog(LOG_DEBUG, "internet_addressing: \x1b[34mexpand_aliases(%s)\x1b[0m", name);
+
        char *aliases = CtdlGetSysConfig(GLOBAL_ALIASES);       // First hit the Global Alias Table
        if (aliases) {
                char *aptr = aliases;
@@ -541,6 +536,8 @@ struct recptypes *validate_recipients(char *supplied_recipients, const char *Rem
        char *org_recp;
        char this_recp[256];
 
+       syslog(LOG_DEBUG, "internet_addressing: \x1b[32mvalidate_recipients(%s) \x1b[0m", supplied_recipients);
+
        ret = (struct recptypes *) malloc(sizeof(struct recptypes));                    // Initialize
        if (ret == NULL) return(NULL);
        memset(ret, 0, sizeof(struct recptypes));                                       // set all values to null/zero