The following issue has been SUBMITTED. 
====================================================================== 
http://dbmail.org/mantis/view.php?id=867 
====================================================================== 
Reported By:                motto
Assigned To:                
====================================================================== 
Project:                    DBMail
Issue ID:                   867
Category:                   Database layer
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
target:                      
====================================================================== 
Date Submitted:             01-Dec-10 16:26 CET
Last Modified:              01-Dec-10 16:26 CET
====================================================================== 
Summary:                    Jananese subject - non utf8 insert into DB
Description: 
# dbmail-smtp -V
This is DBMail version 2.2.17


# cat /etc/dbmail.conf | grep encodi
encoding             = utf8
default_msg_encoding = utf8


PostgreSQL DB - 8.4.5 
Db created with default encoding UTF8.
   Name    |  Owner   | Encoding |  Collation  |    Ctype    |   Access
privileges   
-----------+----------+----------+-------------+-------------+-----------------------
dbmail_db  | adm | UTF8     | en_US.UTF-8 | en_US.UTF-8 |


Sending email with next subject cause the issue below:
"""
告発外の4億円「犯罪事実」に小沢氏
読売新聞 - ?23 分前?
小沢一郎?元民主党代表(68)の資金管理団体「陸山会」の政治資金規正法違反事件を巡り、東京第5検察審査会が小沢氏を「起訴すべきだ」と
"""


and here is DB logs:
2010-12-01 09:32:47 ESTLOG:  statement: SELECT dbmail_mailboxes.owner_idnr
FROM dbmail_mailboxes, dbmail_messages WHERE dbmail_mailboxes.mailbox_idnr
= dbmail_messages.mailbox_idnr AND dbmail_messages.message_idnr = 92816
2010-12-01 09:32:47 ESTLOG:  statement: SELECT user_idnr FROM dbmail_users
WHERE lower(userid) = lower('_...@!internal_delivery_user!@__')
2010-12-01 09:32:47 ESTLOG:  statement: SELECT id FROM dbmail_headername
WHERE LOWER(headername)='content-type'
2010-12-01 09:32:47 ESTLOG:  statement: INSERT INTO dbmail_headervalue
(headername_id, physmessage_id, headervalue) VALUES (1,68384,'text/plain;
charset="utf-8"')
2010-12-01 09:32:47 ESTLOG:  statement: SELECT id FROM dbmail_headername
WHERE LOWER(headername)='date'
2010-12-01 09:32:47 ESTLOG:  statement: INSERT INTO dbmail_headervalue
(headername_id, physmessage_id, headervalue) VALUES (2,68384,'Wed, 01 Dec
2010 14:32:47 +0000')
2010-12-01 09:32:47 ESTLOG:  statement: SELECT id FROM dbmail_headername
WHERE LOWER(headername)='from'
2010-12-01 09:32:47 ESTLOG:  statement: INSERT INTO dbmail_headervalue
(headername_id, physmessage_id, headervalue) VALUES
(3,68384,'"test11111放上的方式反對薩芬撒方式地方
test1發的薩芬的撒輻射的發" <te...@wildcat.bzcrew.com>')
2010-12-01 09:32:47 ESTLOG:  statement: SELECT id FROM dbmail_headername
WHERE LOWER(headername)='message-id'
2010-12-01 09:32:47 ESTLOG:  statement: INSERT INTO dbmail_headervalue
(headername_id, physmessage_id, headervalue) VALUES
(4,68384,'<20101201143247.23848.91850117...@wildcat.bzcrew.com>')
2010-12-01 09:32:47 ESTLOG:  statement: SELECT id FROM dbmail_headername
WHERE LOWER(headername)='received'
2010-12-01 09:32:47 ESTLOG:  statement: INSERT INTO dbmail_headervalue
(headername_id, physmessage_id, headervalue) VALUES (5,68384,'from
localhost ([127.0.0.1]:34260 helo=wildcat.bzcrew.com)   by wildcat.bzcrew.com
with smtp (Exim 4.72)   (envelope-from <te...@wildcat.bzcrew.com>)      id
1PNnjj-0003eN-Fi        for te...@wildcat.bzcrew.com; Wed, 01 Dec 2010 09:32:47
-0500')
2010-12-01 09:32:47 ESTLOG:  statement: SELECT id FROM dbmail_headername
WHERE LOWER(headername)='return-path'
2010-12-01 09:32:47 ESTLOG:  statement: INSERT INTO dbmail_headervalue
(headername_id, physmessage_id, headervalue) VALUES
(6,68384,'"test11111放上的方式反對薩芬撒方式地方
test1發的薩芬的撒輻射的發" <te...@wildcat.bzcrew.com>')
2010-12-01 09:32:47 ESTLOG:  statement: SELECT id FROM dbmail_headername
WHERE LOWER(headername)='sender'
2010-12-01 09:32:47 ESTLOG:  statement: INSERT INTO dbmail_headervalue
(headername_id, physmessage_id, headervalue) VALUES
(7,68384,'te...@wildcat.bzcrew.com')
2010-12-01 09:32:47 ESTLOG:  statement: SELECT id FROM dbmail_headername
WHERE LOWER(headername)='subject'
2010-12-01 09:32:47 ESTLOG:  statement: INSERT INTO dbmail_headervalue
(headername_id, physmessage_id, headervalue) VALUES
(8,68384,'告発外の4億円「犯罪事実」に小沢氏 読売新聞
- ?23 分前?
小沢一郎?元民主党代表(68)の資金管理団体「陸山会」の政治資金規正法違反事件を巡り、東京第5検察審査会が小沢氏を「起訴すべきだ」と')
2010-12-01 09:32:47 ESTLOG:  statement: SELECT id FROM dbmail_headername
WHERE LOWER(headername)='to'
2010-12-01 09:32:47 ESTLOG:  statement: INSERT INTO dbmail_headervalue
(headername_id, physmessage_id, headervalue) VALUES
(9,68384,'te...@wildcat.bzcrew.com')
2010-12-01 09:32:47 ESTLOG:  statement: SELECT id FROM dbmail_headername
WHERE LOWER(headername)='x-viamail-thumbnail-url'
2010-12-01 09:32:47 ESTLOG:  statement: INSERT INTO dbmail_headervalue
(headername_id, physmessage_id, headervalue) VALUES
(10,68384,'http://www.wildcat.bzcrew.com/opus/profile?_a=getresource&id=5002&type=thumbnail&size=320x320&sign=fj51jHMItqu34iO9garc7HR3kuCL1HvG8KLaDPv42ew%3D')
2010-12-01 09:32:47 ESTLOG:  statement: INSERT INTO dbmail_tofield
(physmessage_id, toname, toaddr) VALUES
(68384,'','te...@wildcat.bzcrew.com')
2010-12-01 09:32:47 ESTLOG:  statement: INSERT INTO dbmail_fromfield
(physmessage_id, fromname, fromaddr) VALUES
(68384,'test11111放上的方式反對薩芬撒方式地方
test1發的薩芬的撒輻射的發','te...@wildcat.bzcrew.com')
2010-12-01 09:32:47 ESTLOG:  statement: INSERT INTO dbmail_datefield
(physmessage_id, datefield) VALUES (68384,'2010-12-01 14:32:47')
2010-12-01 09:32:47 ESTERROR:  invalid byte sequence for encoding "UTF8":
0xe82020
2010-12-01 09:32:47 ESTHINT:  This error can also happen if the byte
sequence does not match the encoding expected by the server, which is
controlled by "client_encoding".

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
01-Dec-10 16:26  motto          New Issue                                    
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev

Reply via email to