<!DOCTYPE html>
<html data-lt-installed="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body style="padding-bottom: 1px;">
<br>
<br>
<div class="moz-cite-prefix">On 13/02/2025 12:05,
<a class="moz-txt-link-abbreviated" href="mailto:thorondir+amavis_list@thorondir.com">thorondir+amavis_list@thorondir.com</a> wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1597635d-6c4e-49ba-9efe-9d6ef94f8021@thorondir.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<blockquote type="cite"
cite="mid:CAOmHMuE8+fb8-JkgJpc_k0D+Vbofvi9TB0sc_GMLpi8F3BTFqw@mail.gmail.com">
<pre wrap="" class="moz-quote-pre">But how do I make amavis use it?
</pre>
</blockquote>
In your config you should have an array of decoders, e.g.<br>
<p><font face="monospace">```<br>
@decoders = ( <br>
['mail', \&do_mime_decode], <br>
# [[qw(asc uue hqx ync)], \&do_ascii], # not safe <br>
['F', \&do_uncompress, ['unfreeze', 'freeze -d',
'melt', 'fcat'] ],<br>
['doc', \&do_ole, 'ripole'], <br>
)<br>
```<br>
<span style="color:#000000;background-color:#ffffff;"> </span><br>
</font>so if my perl days aren't failing me, you simply need to
replace the `ripole` with `antiword` in that last line there.<br>
</p>
</blockquote>
If it helps, in Debian, in /etc/amavis/conf.d/01-debian, there is a
line:<br>
<blockquote><font face="monospace">$ripole = 'ripole';</font><br>
</blockquote>
So, in /etc/amavis/conf.d/50-user, I have just added a line to
override this:<br>
<blockquote><font face="monospace">$ripole = ['ripole', 'antiword'];</font><br>
</blockquote>
installed antiword and restarted amavis. It now all looks OK.<br>
</body>
<lt-container></lt-container>
</html>