I found a bug in vpopmaild's find_domain function.
The function should return just the page number of the page that
contains a domain, or page 0 if the given domain does not exist. It was
also sending debug information that should be eliminated. A diff is
enclosed...
--- vpopmail-5.4.13/vpopmaild.c 2006-03-31 03:10:06.000000000 -0700
+++ vpopmail/vpopmaild.c 2006-03-31 03:12:48.000000000 -0700
@@ -1524,14 +1524,7 @@
miss = 1;
while( entry ) {
- snprintf(WriteBuf,sizeof(WriteBuf), "** %s %s %i" RET_CRLF,
- entry->realdomain, entry->domain, count);
- wait_write();
-
if( strcmp(domain, entry->domain)==0 ) {
- snprintf(WriteBuf,sizeof(WriteBuf), "HIT count: %i " RET_CRLF,
count );
- wait_write();
-
miss = 0;
break;
}