Alexander,

> I knew something was missing, thx I added the option so my tcpdump
> call looks like this:
> "tcpdump -i any -s 0 -w tcdump.raw port 10024 or port 10025"
> I updated the uploaded tcpdump onto my webspace at www.temporal.ch/tmp .
> ... you can find three new files now, debug_sender.log
> debug_sender_email.txt and one part of the email under
> debug_sender_p001.txt .

Thanks. This really confirms your claims.

> as expected (by you) the email.txt file is correctly encoded (meaning
> unchanged). However in the tcpdump you clearly see that the file
> returned in not the same file that comes in. I hope you (or someone
> else) can give me some more tipps on debugging with the help of the
> debug.log I made.

I can not reproduce it, nevertheless the following change may have
some effect on your system:

(patch for 2.3.3):

--- amavisd~    Mon Aug 22 01:46:15 2005
+++ amavisd     Sun Aug 20 03:01:40 2006
@@ -11538,4 +11538,6 @@
     $self->{fh_pers} = IO::File->new($fname,'+>',0640)
       or die "Can't create file $fname: $!";
+    binmode($self->{fh_pers}, ":bytes")
+      or die "Can't cancel :utf8 mode on $fname: $!"  if $unicode_aware;
     @stat_list = lstat($fname); add_entropy(@stat_list);
     ($self->{file_dev}, $self->{file_ino}) = @stat_list;

(patch for 2.4.2):

--- amavisd~    Tue Jun 27 13:31:56 2006
+++ amavisd     Sun Aug 20 03:05:58 2006
@@ -4047,4 +4047,6 @@
     $self->{fh_pers} = IO::File->new($fname,'+>',0640)
       or die "Can't create file $fname: $!";
+    binmode($self->{fh_pers}, ":bytes")
+      or die "Can't cancel :utf8 mode on $fname: $!"  if $unicode_aware;
     @stat_list = lstat($fname); add_entropy(@stat_list);
     ($self->{file_dev}, $self->{file_ino}) = @stat_list;

> and a more general question (which shouldn't be related to the
> problem), what triggers decoding and encoding for filter purposes?
> last time I saw it just tries dependant on your perl installation,
> meaning via unicode_aware, whats the idea with displaying LANG and
> LC_ALL then?

I'm not sure I understand which encoding/decoding you have in mind.

The $unicode_aware is there because certain arguments (e.g. to binmode)
are syntax errors for pre-5.8 versions of Perl, so using such options
need to be restricted to Perl that understands them. The purpose
of logging LANG etc. at startup is to help troubleshoot the kind
of problems you have now, but were only common with a change from
Perl 5.6.x to 5.8.0. It's been a long time since I heard of
similar problems, versions of amavisd-new that were developed
when Perl was at 5.8.0 and 5.8.1 tried to works around all such
problems known at that time. But it is possible there are still
some corner cases hidden.

  Mark

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to