Sorry about the confusion.

dbmail now appears to work; I've been able to inject messages into
dbmail and fetch them just fine.

Will do more testing... expect more patches!

-- 
Internet Connection High Quality Web Hosting
http://www.internetconnection.net/
diff -u -r1.2 dbsqlite.c
--- sqlite/dbsqlite.c	2005/02/18 21:33:25	1.2
+++ sqlite/dbsqlite.c	2005/02/18 22:46:25
@@ -157,6 +157,7 @@
 		}
 	}
 
+	trace(TRACE_ERROR, "%s", the_query);
 	if (sqlite_get_table(conn, the_query, &lastq->resp,
 			&lastq->rows, &lastq->cols, &errmsg) != SQLITE_OK) {
 		trace(TRACE_ERROR,
@@ -173,10 +174,11 @@
 	unsigned long did = 0;
 	while (length > 0) {
 		if (*from == '\'') *to++ = *from;
-		*to++ = *from;
+		*to++ = *from++;
 		length--;
 		did++;
 	}
+	*to++ = *from; /* err... */
 	return did;
 }
 int db_do_cleanup(const char **tables UNUSED, int num_tables UNUSED)

Reply via email to