Re: No ext program for .doc, tried: ripole
Nick Howitt <[email protected]> Thu, 13 Feb 2025 12:25:50 +0000
| Newsgroups | gmane.mail.virus.amavis.user |
|---|---|
| Message-ID | <[email protected]> |
On 13/02/2025 12:05, [email protected] 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.