Vincent, I just saw that you had reported this to the courier-users mailing list a year ago already. I am sorry that haven't had much time (and momentum) to work on C::F.
Vincent Schonau wrote: > Occasionally, the Courier::Filter 0.17 pureperlfilter will crash for > me, leaving the following error in the log: > > Nov 10 03:10:06 werkt courierfilter: Wide character in subroutine entry > at /usr/share/courier-filter-perl/perl5/Courier/Message.pm line 625. > > This crashes the filter, and Courier will start deferring mail with > 'Mail filters unavailable' errors. > > The below patch to Courier::Message fixes this for me. It seems safe to > me, but I'm not very well versed in either MIME encoding or Perl > Exception handling. This is indeed a problem with how C::F catches exceptions in MIME::Words:: Better::decode_mimewords(). I was using Error.pm wrong. The attached patch fixes the issue properly. Since I cannot say yet when the next C::F release is going to happen, I am also attaching the current trunk version of Courier::Message, which includes fixes for two other (rare) issues that have occurred in the past. Spam can be such a syntactic crap! Julian.
Index: lib/Courier/Message.pm =================================================================== --- lib/Courier/Message.pm (revision 202) +++ lib/Courier/Message.pm (working copy) @@ -627,7 +627,7 @@ $decoded_word = Encode::decode($char_enc, $chunk); } - except { + otherwise { # The chunk contains invalid characters, leave the encoded word as is: $decoded_word = $encoded_word; };
Message.pm
Description: application/perl-module
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users