When comparing the sender, compare both the name and address.
[citadel.git] / citadel / internet_addressing.c
index 90794b87a24b01cc271465cf3c07df7cc1ccec74..9f24a46ee390c4afa291baabb2858d9014378f03 100644 (file)
@@ -1670,6 +1670,7 @@ void AutoGenerateEmailAddressForUser(struct ctdluser *user)
                        snprintf(synthetic_email_addr, sizeof synthetic_email_addr, "ctdl%08x@%s", i, CtdlGetConfigStr("c_fqdn"));
                }
                u = CtdlDirectoryLookup(NULL, synthetic_email_addr, 0);
+               syslog(LOG_DEBUG, "\033[33mAddress <%s> lookup <%d>\033[0m", synthetic_email_addr, u);
        }
 
        CtdlSetEmailAddressesForUser(user->fullname, synthetic_email_addr);