[DBMail 0000805]: LMTPD dies when incorrect utf-8 character is in header

View: New views
3 Messages — Rating Filter:   Alert me  

[DBMail 0000805]: LMTPD dies when incorrect utf-8 character is in header

by Mantis Bug Tracker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


The following issue has been SUBMITTED.
======================================================================
http://www.dbmail.org/mantis/view.php?id=805 
======================================================================
Reported By:                maximP
Assigned To:                
======================================================================
Project:                    DBMail
Issue ID:                   805
Category:                   LMTP daemon
Reproducibility:            have not tried
Severity:                   major
Priority:                   normal
Status:                     new
target:                      
======================================================================
Date Submitted:             09-Sep-09 16:41 CEST
Last Modified:              09-Sep-09 16:41 CEST
======================================================================
Summary:                    LMTPD dies when incorrect utf-8 character is in
header
Description:
It seems that not enough checks are performed when parsing and storing
header values (and maybe header names also). When Dbmail tries to store a
header with incorrect utf-8 character, the exception from PostgreSQL is
thrown:

Error:[message] _header_value_get_id(+1575): SQLException: ERROR:  invalid
byte sequence for encoding "UTF8": 0xd0 HINT: This error can also happen if
the byte sequ

And LMTPD just dies. I had to switch to message delivering through
dbmail-deliver, it's more reliable when such problems exist.

Would it better for LMTPD not to die in case of errors, but be able to
deliver next messages?

Unfortunately, I can't provide the mail message which caused the problem
(it was canceled by MTA after some days).
======================================================================

Issue History
Date Modified    Username       Field                    Change              
======================================================================
09-Sep-09 16:41  maximP         New Issue                                    
======================================================================

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

[DBMail 0000805]: LMTPD dies when incorrect utf-8 character is in header

by Mantis Bug Tracker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


A NOTE has been added to this issue.
======================================================================
http://dbmail.org/mantis/view.php?id=805 
======================================================================
Reported By:                maximP
Assigned To:                
======================================================================
Project:                    DBMail
Issue ID:                   805
Category:                   LMTP daemon
Reproducibility:            have not tried
Severity:                   major
Priority:                   normal
Status:                     new
target:                      
======================================================================
Date Submitted:             09-Sep-09 16:41 CEST
Last Modified:              02-Nov-09 17:19 CET
======================================================================
Summary:                    LMTPD dies when incorrect utf-8 character is in
header
Description:
It seems that not enough checks are performed when parsing and storing
header values (and maybe header names also). When Dbmail tries to store a
header with incorrect utf-8 character, the exception from PostgreSQL is
thrown:

Error:[message] _header_value_get_id(+1575): SQLException: ERROR:  invalid
byte sequence for encoding "UTF8": 0xd0 HINT: This error can also happen if
the byte sequ

And LMTPD just dies. I had to switch to message delivering through
dbmail-deliver, it's more reliable when such problems exist.

Would it better for LMTPD not to die in case of errors, but be able to
deliver next messages?

Unfortunately, I can't provide the mail message which caused the problem
(it was canceled by MTA after some days).
======================================================================

----------------------------------------------------------------------
 (0002940) maximP (reporter) - 02-Nov-09 17:19
 http://dbmail.org/mantis/view.php?id=805#c2940 
----------------------------------------------------------------------
Any thoughts concerning this problem?

Issue History
Date Modified    Username       Field                    Change              
======================================================================
09-Sep-09 16:41  maximP         New Issue                                    
02-Nov-09 17:19  maximP         Note Added: 0002940                          
======================================================================

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

[DBMail 0000805]: LMTPD dies when incorrect utf-8 character is in header

by Mantis Bug Tracker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


A NOTE has been added to this issue.
======================================================================
http://www.dbmail.org/mantis/view.php?id=805 
======================================================================
Reported By:                maximP
Assigned To:                
======================================================================
Project:                    DBMail
Issue ID:                   805
Category:                   LMTP daemon
Reproducibility:            have not tried
Severity:                   major
Priority:                   normal
Status:                     new
target:                      
======================================================================
Date Submitted:             09-Sep-09 16:41 CEST
Last Modified:              10-Nov-09 20:12 CET
======================================================================
Summary:                    LMTPD dies when incorrect utf-8 character is in
header
Description:
It seems that not enough checks are performed when parsing and storing
header values (and maybe header names also). When Dbmail tries to store a
header with incorrect utf-8 character, the exception from PostgreSQL is
thrown:

Error:[message] _header_value_get_id(+1575): SQLException: ERROR:  invalid
byte sequence for encoding "UTF8": 0xd0 HINT: This error can also happen if
the byte sequ

And LMTPD just dies. I had to switch to message delivering through
dbmail-deliver, it's more reliable when such problems exist.

Would it better for LMTPD not to die in case of errors, but be able to
deliver next messages?

Unfortunately, I can't provide the mail message which caused the problem
(it was canceled by MTA after some days).
======================================================================

----------------------------------------------------------------------
 (0002940) maximP (reporter) - 02-Nov-09 17:19
 http://www.dbmail.org/mantis/view.php?id=805#c2940 
----------------------------------------------------------------------
Any thoughts concerning this problem?

----------------------------------------------------------------------
 (0002944) paul (administrator) - 10-Nov-09 20:12
 http://www.dbmail.org/mantis/view.php?id=805#c2944 
----------------------------------------------------------------------
Maxim,

I looked into this.
Plz try:
http://git.dbmail.eu/cgit/cgit.cgi/paul/dbmail/commit/?id=82e7d21504044bb4b27d2d9a69d33bb85d043bf9


Issue History
Date Modified    Username       Field                    Change              
======================================================================
09-Sep-09 16:41  maximP         New Issue                                    
02-Nov-09 17:19  maximP         Note Added: 0002940                          
10-Nov-09 20:12  paul           Note Added: 0002944                          
======================================================================

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