A NOTE has been added to this issue. ====================================================================== http://www.dbmail.org/mantis/view.php?id=597 ====================================================================== Reported By: LordVan Assigned To: ====================================================================== Project: DBMail Issue ID: 597 Category: Sieve (delivery, dbmail-sievecmd, dbmail-timsieved) Reproducibility: random Severity: major Priority: normal Status: new target: ====================================================================== Date Submitted: 18-May-07 11:27 CEST Last Modified: 21-May-07 17:57 CEST ====================================================================== Summary: invalid byte sequence / encoding errors (most likely from timsieved) Description: I get rather odd error messages in my postgresql log at the moment which are about encoding / invalid byte sequences (see additional information). unfortunately i don't get anything in my dbmail logs, but since I recently activated timsieved i think it is causing the problem (I get some 'emails' in my inbox which indicate some problem with sieve):
From: [EMAIL PROTECTED] Subject: Sieve script run error To: lordvan Message-Id: <1179479501l.19950l.0l@(none)> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-DBMail-PhysMessage-ID: 273777 Your Sieve script [phpscript] failed to run correctly. Messages will be delivered to your INBOX for now. The error message is: syntax error, unexpected '<', expecting $end If needed i can turn on the debugging for sieve, but please let me know first if I'm correct as I get plenty of debug at the moment already anyway .. ====================================================================== ---------------------------------------------------------------------- aaron - 19-May-07 09:12 ---------------------------------------------------------------------- Looks like two unrelated problems: 1. Some messages are arriving that are not valid utf-8 and this makes postgresql angry. 2. An error in a sieve script or possibly some bad input is resulting in a runtime error in the sieve interpreter. ---------------------------------------------------------------------- LordVan - 21-May-07 11:09 ---------------------------------------------------------------------- Hmm i see. shall we seperate this into 2 tickets? regarding 1: is there any (reasonably costly) way to check if the encoding is ok before sending it to postgres ? re 2: the message i get back is not very useful unfortunately and none of my scripts look like they could cause that (als it seems to me that all my scripts actually work (none are more complicate than sender matchex X or List-Id matches Y ..apart from 2 which have where to matches Z or A or B but that's it :( ) ---------------------------------------------------------------------- decibel - 21-May-07 17:57 ---------------------------------------------------------------------- Rather than checking for valid UTF8 yourself it might be better to trap the error from PostgreSQL using a stored procedure and an exception block. On the other hand, you probably want to allow some means of storing the email even if it does include invalid UTF8, perhaps by replacing the invalid characters with something else. Issue History Date Modified Username Field Change ====================================================================== 18-May-07 11:27 LordVan New Issue 19-May-07 09:12 aaron Note Added: 0002189 21-May-07 11:09 LordVan Note Added: 0002199 21-May-07 17:57 decibel Note Added: 0002200 ====================================================================== _______________________________________________ Dbmail-dev mailing list [email protected] http://twister.fastxs.net/mailman/listinfo/dbmail-dev
