Hi all, Jesse found an issue in the db_log_ip routine in dbpgsql.c that would return extraneous text to a POP3 client that may make it throw up. It would return row number 0 is out of range 0..-1 when it looks for an entry in the pbsp table _if_ there isn't already one there. The daemon then does continue to return "good" data, but it's possible that there are some clients out there that won't like the unexpected data.
Patch below. --- dbmail-20020925-clean/pgsql/dbpgsql.c 2002-07-16 04:13:22.000000000 -0600 +++ dbmail-20020925/pgsql/dbpgsql.c 2002-10-30 16:16:48.000000000 -0700 @@ -1361,7 +1360,7 @@ return -1; } - if (PQntuples>0) + if (PQntuples(res)>0) { row = PQgetvalue (res, 0, 0); id = row ? strtoull(row, NULL, 10) : 0; (also attached) dave -- Dave Logan "Give the people what they want, when they want, and they wants it all the time." -- George Clinton
pbsp_pgtuples.patch
Description: Binary data