Zachariah,

> > Do an 'unset PERLIO' in the same process (script) before starting
> > amavisd.
>
> I'm starting amavisd-new from the debian initscript, so did you mean to
> add to the initscript?

Yes, that's what I had in mind, not being familiar with Debian ways.

> Even starting amavis as below doesn't fix the 
> problem (as per the perlio page:http://perldoc.perl.org/PerlIO.html) :
>   mail:/etc/amavis# PERLIO=perlio amavisd-new

Hm. See experiment below.

> And the perlio page indicates that an unset PERLIO environment variable
> defaults to 'stdio' in Perl 5.8.

This is not true for all platforms.

Try:

$ perl -le 'print join(", ",PerlIO::get_layers(\*STDIN))'
$ PERLIO=''       perl -le 'print join(", ",PerlIO::get_layers(\*STDIN))'
$ PERLIO='stdio'  perl -le 'print join(", ",PerlIO::get_layers(\*STDIN))'
$ PERLIO='perlio' perl -le 'print join(", ",PerlIO::get_layers(\*STDIN))'
$ unset PERLIO;   perl -le 'print join(", ",PerlIO::get_layers(\*STDIN))'

Then try:
$ echo "test"|PERLIO="stdio"  perl -e '$!=0; while(<>){print}; $!==0 or die 
"Err: $!"'
$ echo "test"|PERLIO="perlio" perl -e '$!=0; while(<>){print}; $!==0 or die 
"Err: $!"'
etc.

  Mark

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
[email protected]
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