It can be that PostgreSQL cuts a piece of the query when sending the error message. That's why we need the original query.

Ilja

Sergey Spiridonov wrote:

I think I see the problem

The query is printed as
trace(TRACE_ERROR, "%s, %s: "
                              "Error executing query [%s] : [%s]\n",

So, it is started and finished with [].

May 13 14:17:42 james dbmail/smtp[15206]: dbpgsql.c, db_query: Error executing query [INSERT INTO messageblks(messageblk,blocksize, physmessage_id) VALUES ('Return-Path: <[EMAIL PROTECTED]>
May 13 14:17:42 james Delivered-To: [EMAIL PROTECTED]
May 13 14:17:42 james Received: from legba.gamic.com [192.168.12.1]
May 13 14:17:42 james     by localhost with POP3 (fetchmail-6.2.5)
May 13 14:17:42 james for [EMAIL PROTECTED] (single-drop); Thu, 13 May 2004 14:17:42 +0200 (CEST) May 13 14:17:42 james Received: (qmail 19060 invoked from network); 12 May 2004 12:56:14 -0000
May 13 14:17:42 james Received: from unknown (HELO localhost) (127.0.0.1)
May 13 14:17:42 james by 127.0.0.1 with SMTP; 12 May 2004 12:56:14 -0000
May 13 14:17:42 james Message-ID: <[EMAIL PROTECTED]>
May 13 14:17:42 james Disposition-Notification-To: Martin Malkomes <[EMAIL PROTECTED]>
May 13 14:17:42 james Date: Wed, 12 May 2004 14:55:59 +0200
May 13 14:17:42 james From: Martin Malkomes <[EMAIL PROTECTED]>
May 13 14:17:42 james Organization: GAMIC
May 13 14:17:42 james User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
May 13 14:17:42 james X-Accept-Language: en-us, en, fr, de
May 13 14:17:42 james MIME-Version: 1.0
May 13 14:17:42 james To:  [EMAIL PROTECTED]
May 13 14:17:42 james CC:  [EMAIL PROTECTED]
May 13 14:17:42 james Subject: Re: RES: Notebook PC''s
May 13 14:17:42 james References: <[EMAIL PROTECTED]>
May 13 14:17:42 james In-Reply-To: <[EMAIL PROTECTED]>
May 13 14:17:42 james Content-Type: multipart/mixed;
May 13 14:17:42 james boundary="------------000601050905040008050003"
May 13 14:17:42 james ] : [ERROR: parser: unterminated quoted string at

                        ^^^
here should be <<')]>> instead of <<]>> - closing ' and ) are missed.
Seems to be some buffer overflow, or wrong length calculation in code before...

--
Best regards, Sergey Spiridonov

_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to