> Thanks for the reply. Apparently you are correct. When you say "the path,"
> are you talking about $PATH in /etc/profile?

Almost. Actually there is a configuration variable $path, set in amavisd.conf,
typically to something like:

$path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin';

It is just a default path, but each decoder/dearchiver can override it
by explicitly stating the full path to a program.

> Also does that apply to most 
> of the common extractors (arj, rar, etc.)?

Yes, they are all using the same configuration principle.

See file amavisd.conf-default in the distribution and search for @decoders.
This @decoders list is the one which associates an external (or internal)
decoding program (or internal routine) with each 'short file type', which
is a short string like gz, tar, rar, ..., resulting from mapping a result of
a file(1) utility through @map_full_type_to_short_type_maps.

For backwards compatibility most decoders also have their own variable
for specifying a program name (full absolute path or searched in $path).

For example:
  $cabextract = 'cabextract';
or:
  $cabextract = '/usr/local/bin/cabextract';

then in the @decoders list there is an entry:

  ['cab',  \&do_cabextract, \$cabextract],

referring to this variable.

If you prefer, that entry in @decoders could be changed directly
to something like
  ['cab',  \&do_cabextract, 'cabextract'],
in which case the old-style variable $cabextract would not be used.


  Mark

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
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