Sorry for my reply delayed.
Postfix seems to send an extra empty line after the headers, so it's like this:
Yes, I use Postfix 2.0.19 as a local MTA, together with fetchmail on fresh FreeBSD 5.2-CURRENT.
I tried sending test messages to me via lmtp and smtp, and pulled message directly from MySQL. Attached is its responce sampled as below (some sensitive parts are modified).
echo "SELECT messageblks.messageblk FROM dbmail.messageblks AS messageblks, dbmail.messages AS messages WHERE messages.deleted_flag='0' AND messages.mailbox_idnr='1' AND messageblks.physmessage_id=messages.physmessage_id;" | /usr/local/mysql/bin/mysql -u foo -p > responce.log
I hope it can help. -- UEMURA (fka. MAENAKA) Tetsuya [EMAIL PROTECTED]
messageblk Received: from localhost (localhost [127.0.0.1])\n\tby dynamicaddr.minidns.net (Postfix) with ESMTP id E10038117\n\tfor <[EMAIL PROTECTED]>; Fri, 7 May 2004 21:30:04 +0900 (JST)\nReceived: from pop.pluto.dti.ne.jp [202.216.228.62]\n\tby localhost with POP3 (fetchmail-6.2.5)\n\tfor [EMAIL PROTECTED] (single-drop); Fri, 07 May 2004 21:30:04 +0900 (JST)\nReceived: from smtp6.dti.ne.jp (smtp6.dti.ne.jp [202.216.228.41]) by pop.pluto.dti.ne.jp (3.08p) with ESMTP id i47CPxxN011770 for <[EMAIL PROTECTED]>; Fri, 7 May 2004 21:25:59 +0900 (JST)\nReceived: from [192.168.0.101] (PPPannn.kanagawa-ip.dti.ne.jp [11.22.33.44]) by smtp6.dti.ne.jp (3.08s) with ESMTP AUTH id i47CPxav012866 for <[EMAIL PROTECTED]>; Fri, 7 May 2004 21:25:59 +0900 (JST)\nDate: Fri, 7 May 2004 21:25:59 +0900 (JST)\nMessage-Id: <[EMAIL PROTECTED]>\nFrom: MAENAKA Tetsuya <[EMAIL PROTECTED]>\nTo: [EMAIL PROTECTED]: TEST.\nMIME-Version: 1.0\nContent-Type: text/plai n; charset="US-ASCII"\nContent-Transfer-Encoding: 7bit\nX-Mailer: Becky! ver. 2.05.04\n\n Test message.\n\n-- \nMAENAKA Tetsuya <[EMAIL PROTECTED]>\n\n Received: from localhost (localhost [127.0.0.1]) \n\tby dynamicaddr.minidns.net (Postfix) with ESMTP id 56E458124 \n\tfor <[EMAIL PROTECTED]>; Fri, 7 May 2004 21:35:09 +0900 (JST) \nReceived: from pop.pluto.dti.ne.jp [202.216.228.62] \n\tby localhost with POP3 (fetchmail-6.2.5) \n\tfor [EMAIL PROTECTED] (single-drop); Fri, 07 May 2004 21:35:09 +0900 (JST) \nReceived: from smtp6.dti.ne.jp (smtp6.dti.ne.jp [202.216.228.41]) by pop.pluto.dti.ne.jp (3.08p) with ESMTP id i47CWrxN014287 for <[EMAIL PROTECTED]>; Fri, 7 May 2004 21:32:53 +0900 (JST) \nReceived: from [192.168.0.101] (PPPannn.kanagawa-ip.dti.ne.jp [11.22.33.44]) by smtp6.dti.ne.jp (3.08s) with ESMTP AUTH id i47CWrav013225 for <[EMAIL PROTECTED]>; Fri, 7 May 2004 21:32:53 +0900 (JST) \nDate: Fri, 7 May 2004 21:32:53 +0900 (JST) \nMessage-Id: <[EMAIL PROTECTED]> \nFrom: MAENAKA Tetsuya <[EMAIL PROTECTED]> \nTo: [EMAIL PROTECTED] \nSubject: TEST. \nMIME-Version: 1.0 \nContent-Type: text/plain; charset="US-ASCII" \nContent-Transfer-Encoding: 7bit \nX-Mailer: Becky! ver. 2.05.04 \n \n Test message. \n \n-- \nMAENAKA Tetsuya <[EMAIL PROTECTED]> \n \n