On 13/02/2025 12:05, thorondir+amavis_l...@thorondir.com wrote:
But how do I make amavis use it?
In your config you should have an array of decoders, e.g.

```
@decoders = (
 ['mail', \&do_mime_decode],
# [[qw(asc uue hqx ync)], \&do_ascii],  # not safe
 ['F',    \&do_uncompress, ['unfreeze', 'freeze -d', 'melt', 'fcat'] ],
 ['doc',  \&do_ole,   'ripole'],
)
```

so if my perl days aren't failing me, you simply need to replace the `ripole` with `antiword` in that last line there.

If it helps, in Debian, in /etc/amavis/conf.d/01-debian, there is a line:

   $ripole = 'ripole';

So, in /etc/amavis/conf.d/50-user, I have just added a line to override this:

   $ripole = ['ripole', 'antiword'];

installed antiword and restarted amavis. It now all looks OK.

Reply via email to